From 077bc92c1f6128eaf238a37dcac3831d029e20b0 Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Fri, 23 Feb 2018 09:37:00 +0100 Subject: [PATCH] Emacs: server with use-package --- emacs/emacs.el | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/emacs/emacs.el b/emacs/emacs.el index af01208..fa7a8a0 100644 --- a/emacs/emacs.el +++ b/emacs/emacs.el @@ -219,9 +219,19 @@ ;; ;; all packages should be loaded with use-package +;; server +(use-package server + :if window-system + :hook + ((after-init-hook . server-start) + ;; StumpWM interaction + (server-done-hook . (lambda () + (shell-command + "stumpish 'eval (stumpwm::return-es-called-win stumpwm::*es-win*)'")))) + :init (setq server-raise-frame t)) + ;; which-key ;; Display available keybindings in popup - (use-package which-key :config (which-key-mode))