38 lines
1.1 KiB
EmacsLisp
38 lines
1.1 KiB
EmacsLisp
;; -*- lexical-binding: t; -*-
|
|
|
|
;;; init-keybindings.el --- Keybindings -*- lexical-binding: t; -*-
|
|
|
|
(global-set-key (kbd "C-c t") #'my/org-new-task)
|
|
(global-set-key (kbd "C-c d") #'my/org-new-doc)
|
|
(global-set-key (kbd "C-c k") #'my/org-new-kpi)
|
|
(global-set-key (kbd "C-c n") #'my/org-new-note)
|
|
|
|
|
|
;; org-roam-keybindings
|
|
(global-set-key (kbd "C-c r f") #'org-roam-node-find)
|
|
(global-set-key (kbd "C-c r i") #'org-roam-node-insert)
|
|
(global-set-key (kbd "C-c r b") #'org-roam-buffer-toggle)
|
|
|
|
;; my cheatsheet
|
|
(defun my/open-cheatsheet ()
|
|
(interactive)
|
|
(find-file "~/.emacs.d/cheatsheet.org"))
|
|
(global-set-key (kbd "C-c c") #'my/open-cheatsheet)
|
|
|
|
;; consult-ripgrep direkt an Ordner Org binden
|
|
(defun my/search-org ()
|
|
(interactive)
|
|
(consult-ripgrep (expand-file-name "~/org/")))
|
|
|
|
(global-set-key (kbd "C-c s") #'my/search-org)
|
|
;;(global-set-key (kbd "C-c s") #'consult-ripgrep)
|
|
(global-set-key (kbd "C-c f") #'consult-line)
|
|
(global-set-key (kbd "C-c b") #'consult-buffer)
|
|
(global-set-key (kbd "C-c g") #'consult-git-grep)
|
|
|
|
(global-set-key (kbd "C-c #") #'comment-dwim)
|
|
|
|
|
|
(provide 'init-keybindings)
|
|
;;; init-keybindings.el ends here
|