summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-emacs/emacs-daemon/files/10emacs-daemon-gentoo.el')
-rw-r--r--app-emacs/emacs-daemon/files/10emacs-daemon-gentoo.el12
1 files changed, 12 insertions, 0 deletions
diff --git a/app-emacs/emacs-daemon/files/10emacs-daemon-gentoo.el b/app-emacs/emacs-daemon/files/10emacs-daemon-gentoo.el
new file mode 100644
index 0000000..ae29057
--- /dev/null
+++ b/app-emacs/emacs-daemon/files/10emacs-daemon-gentoo.el
@@ -0,0 +1,12 @@
+
+;;; emacs-daemon site-lisp configuration
+
+(and
+ (fboundp 'daemonp)
+ (daemonp)
+ (let ((file (concat "/var/run/emacs-daemon/"
+ (user-login-name) "/emacs.pid")))
+ (if (file-writable-p file)
+ ;; write process id to file
+ (with-temp-file file
+ (insert (number-to-string (emacs-pid)) "\n")))))