Add keybind to open org-directory
This commit is contained in:
parent
9f6edcc1b8
commit
89b975cb01
|
@ -29,16 +29,6 @@
|
|||
scroll-margin 0
|
||||
scroll-preserve-screen-position 1)
|
||||
|
||||
;; Config file shortcut
|
||||
(defun my/open-init-file ()
|
||||
"Open emacs init file"
|
||||
(interactive)
|
||||
(find-file (locate-user-emacs-file "init.el")))
|
||||
(keymap-global-set "C-c w c" #'my/open-init-file)
|
||||
|
||||
|
||||
;; Scratch buffer shortcut
|
||||
(keymap-global-set "C-c w x" #'scratch-buffer)
|
||||
|
||||
;; Bind normal forward/back buttons on mouse to next/previous buffer respectively
|
||||
(keymap-global-set "<mouse-8>" #'previous-buffer)
|
||||
|
@ -83,6 +73,26 @@
|
|||
(recentf-max-saved-items 2048))
|
||||
#+end_src
|
||||
|
||||
* Frequent buffer shortcuts
|
||||
#+begin_src emacs-lisp
|
||||
;; Config file shortcut
|
||||
(defun my/open-init-file ()
|
||||
"Open emacs init file"
|
||||
(interactive)
|
||||
(find-file (locate-user-emacs-file "init.el")))
|
||||
(keymap-global-set "C-c w c" #'my/open-init-file)
|
||||
|
||||
;; Scratch buffer shortcut
|
||||
(keymap-global-set "C-c w x" #'scratch-buffer)
|
||||
|
||||
;; Org directory shortcut
|
||||
(with-eval-after-load 'org
|
||||
(defun my/open-org-directory ()
|
||||
(interactive)
|
||||
(find-file org-directory))
|
||||
(keymap-global-set "C-c w o" #'my/open-org-directory))
|
||||
#+end_src
|
||||
|
||||
* package-archive with priorities
|
||||
#+begin_src emacs-lisp :results output silent
|
||||
(when (require 'package nil :noerror)
|
||||
|
|
Loading…
Reference in a new issue