summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2015-03-23 00:48:30 -0400
committerKyle Meyer <kyle@kyleam.com>2015-03-23 00:48:30 -0400
commit8eebc46e129d2f32597d9e58772af2aac4a86d26 (patch)
treedb6873dd285a518541604fe9ad9dc5719bc046f1
parent8894f0436e42ddb132f316e3f6f1f9939cd6fa0d (diff)
downloademacs.d-8eebc46e129d2f32597d9e58772af2aac4a86d26.tar.gz
Use a second daemon for Gnus
Follow setup described in http://tychoish.com/posts/running-multiple-emacs-daemons-on-a-single-system/
-rw-r--r--.gitignore1
-rw-r--r--init.el6
-rw-r--r--lisp/init-mail.el10
3 files changed, 15 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index d6a6e58..daf9916 100644
--- a/.gitignore
+++ b/.gitignore
@@ -14,3 +14,4 @@ bookmarks
/ac-comphist.dat
/.cask
/.custom.el
+/server
diff --git a/init.el b/init.el
index 428608b..3add1e2 100644
--- a/init.el
+++ b/init.el
@@ -50,11 +50,13 @@
(require 'init-yas)
-(require 'init-gnus)
-
(when (file-exists-p (expand-file-name "init-untracked.el" km/init-lisp-dir))
(require 'init-untracked))
+(setq server-use-tcp t)
(require 'server)
(unless (server-running-p)
(server-start))
+
+(require 'init-mail)
+
diff --git a/lisp/init-mail.el b/lisp/init-mail.el
new file mode 100644
index 0000000..0163420
--- /dev/null
+++ b/lisp/init-mail.el
@@ -0,0 +1,10 @@
+
+(require 'init-gnus)
+
+(if (equal (daemonp) "mail")
+ (progn
+ (setq mode-line-misc-info (cons " [Mail] " mode-line-misc-info))
+ (key-chord-define-global "jg" 'km/mail-map))
+ (global-set-key (kbd "C-x m") nil))
+
+(provide 'init-mail)