about summary refs log tree commit diff
path: root/configs/shared/.emacs.d/wpc/window-manager.el
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2020-01-24T11·26+0000
committerWilliam Carroll <wpcarro@gmail.com>2020-01-24T11·26+0000
commite0fa9d907d18f98c14ea6613db1b5fa31eb683fb (patch)
treeee4503e8f5de60ac8a6796a144bb775b15884865 /configs/shared/.emacs.d/wpc/window-manager.el
parent402720792ea8eaf30711c97b46cada396fd90b66 (diff)
Define pkill Emacs function
I can kill process from Emacs instead of creating a terminal and using that.
Diffstat (limited to 'configs/shared/.emacs.d/wpc/window-manager.el')
-rw-r--r--configs/shared/.emacs.d/wpc/window-manager.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/configs/shared/.emacs.d/wpc/window-manager.el b/configs/shared/.emacs.d/wpc/window-manager.el
index d7d7d783ac0e..cf7f1efeb799 100644
--- a/configs/shared/.emacs.d/wpc/window-manager.el
+++ b/configs/shared/.emacs.d/wpc/window-manager.el
@@ -31,6 +31,12 @@
 ;; Library
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 
+;; TODO: Move this function to another module.
+(defun pkill (name)
+  "Call the pkill executable using NAME as its argument."
+  (interactive "sProcess name: ")
+  (call-process "pkill" nil nil nil name))
+
 ;; TODO: Associate `window-purpose' window-layouts with each of these named
 ;; workspaces.