mirror of
https://github.com/Ascyii/emacs.git
synced 2026-01-01 06:04:24 -05:00
Some working configuration
This commit is contained in:
20
lisp/keybinds.el
Normal file
20
lisp/keybinds.el
Normal file
@@ -0,0 +1,20 @@
|
||||
;; Variables
|
||||
(defvar my-zettelkasten-dir "/webdav/notes"
|
||||
"Path to zettelkasten directory.")
|
||||
|
||||
;; Functions
|
||||
(defun jonas/open-notes ()
|
||||
"Open zettelkasten directory in dired."
|
||||
(interactive)
|
||||
(dired my-zettelkasten-dir))
|
||||
|
||||
;; Helpers
|
||||
(global-set-key (kbd "C-c z") #'jonas/open-notes)
|
||||
|
||||
;; Org mode
|
||||
(with-eval-after-load 'org
|
||||
(define-key org-mode-map (kbd "C-c t") #'org-todo)
|
||||
(define-key org-mode-map (kbd "C-c TAB") #'org-cycle)
|
||||
(define-key org-mode-map (kbd "C-c l") #'org-insert-link))
|
||||
|
||||
(provide 'keybinds)
|
||||
Reference in New Issue
Block a user