Define pkill Emacs function

I can kill process from Emacs instead of creating a terminal and using that.
This commit is contained in:
William Carroll 2020-01-24 11:26:57 +00:00
parent 402720792e
commit e0fa9d907d

View file

@ -31,6 +31,12 @@
;; Library ;; 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 ;; TODO: Associate `window-purpose' window-layouts with each of these named
;; workspaces. ;; workspaces.