about summary refs log tree commit diff
path: root/emacs/.emacs.d/wpc/wpc-misc.el
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2020-08-31T13·36+0100
committerWilliam Carroll <wpcarro@gmail.com>2020-08-31T13·42+0100
commit84d6fb8f39da41ea3f908b6cbe95c9c9bb4d81f1 (patch)
tree27f29cdbd7fb93ff1a3c7f027dfe3537fa907362 /emacs/.emacs.d/wpc/wpc-misc.el
parenta2d45c8db75a5656d8ba7ef2c88fb532f4b41805 (diff)
Lint window-manager.el
- change `exwm/` prefixes to `window-manager-`
- add Version, URL, Package-Requires sections
- move `pkill` into wpc-misc.el
- unify `window-manager,` `exwm` competing prefixes
Diffstat (limited to 'emacs/.emacs.d/wpc/wpc-misc.el')
-rw-r--r--emacs/.emacs.d/wpc/wpc-misc.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/emacs/.emacs.d/wpc/wpc-misc.el b/emacs/.emacs.d/wpc/wpc-misc.el
index 21dab767fc28..b5ecff44b939 100644
--- a/emacs/.emacs.d/wpc/wpc-misc.el
+++ b/emacs/.emacs.d/wpc/wpc-misc.el
@@ -216,6 +216,11 @@
 
 (add-to-list 'project-find-functions #'wpc-misc--briefcase-find)
 
+(defun wpc-misc-pkill (name)
+  "Call the pkill executable using NAME as its argument."
+  (interactive "sProcess name: ")
+  (call-process "pkill" nil nil nil name))
+
 (use-package deadgrep
   :config
   (general-define-key