diff options
author | William Carroll <wpcarro@gmail.com> | 2020-01-24T11·26+0000 |
---|---|---|
committer | William Carroll <wpcarro@gmail.com> | 2020-01-24T11·26+0000 |
commit | e0fa9d907d18f98c14ea6613db1b5fa31eb683fb (patch) | |
tree | ee4503e8f5de60ac8a6796a144bb775b15884865 /configs/shared/.emacs.d/wpc/window-manager.el | |
parent | 402720792ea8eaf30711c97b46cada396fd90b66 (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.el | 6 |
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. |