From e0fa9d907d18f98c14ea6613db1b5fa31eb683fb Mon Sep 17 00:00:00 2001
From: William Carroll <wpcarro@gmail.com>
Date: Fri, 24 Jan 2020 11:26:57 +0000
Subject: [PATCH] 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(+)

diff --git a/configs/shared/.emacs.d/wpc/window-manager.el b/configs/shared/.emacs.d/wpc/window-manager.el
index d7d7d783a..cf7f1efeb 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.