aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2016-10-08 00:11:43 +0200
committerGravatar Tom Willemse2016-10-08 00:11:43 +0200
commitb7f46bc74d78437fd80508e6f87508e725f4a1d4 (patch)
treeb9075fbe05fd99fb978544750b2c1ef028126f37
parentc3aac000c19112550550173930dfc04a0a19bb03 (diff)
downloadnew-dotfiles-b7f46bc74d78437fd80508e6f87508e725f4a1d4.tar.gz
new-dotfiles-b7f46bc74d78437fd80508e6f87508e725f4a1d4.zip
Manually set default directory for jabber chats
Otherwise jabber chat buffers become part of whichever project is opened when a message comes in and gets closed when the project is killed.
-rw-r--r--emacs/.emacs.d/init.org10
1 files changed, 10 insertions, 0 deletions
diff --git a/emacs/.emacs.d/init.org b/emacs/.emacs.d/init.org
index fa84a9b..5be0e9d 100644
--- a/emacs/.emacs.d/init.org
+++ b/emacs/.emacs.d/init.org
@@ -1341,6 +1341,16 @@ To start off, first I need to enable lexical binding.
(add-hook 'jabber-alert-presence-hooks 'oni-jabber-show-status-in-buffer)
#+END_SRC
+ Set the default directory to my home directory for jabber chat
+ buffers.
+
+ #+BEGIN_SRC emacs-lisp
+ (defun oni:set-default-directory ()
+ (setq default-directory "~/"))
+
+ (add-hook 'jabber-chat-mode-hook 'oni:set-default-directory)
+ #+END_SRC
+
* Custom
Put the customize settings in a different file so that Emacs doesn't