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.
This commit is contained in:
parent
c3aac000c1
commit
b7f46bc74d
1 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue