From e0fa9d907d18f98c14ea6613db1b5fa31eb683fb Mon Sep 17 00:00:00 2001 From: William Carroll Date: Fri, 24 Jan 2020 11:26:57 +0000 Subject: Define pkill Emacs function I can kill process from Emacs instead of creating a terminal and using that. --- configs/shared/.emacs.d/wpc/window-manager.el | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'configs') 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. -- cgit 1.4.1