diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-04-23 01:40:27 +0530 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-04-23 01:40:27 +0530 |
commit | a35eeb19b96a2de797df192664c5480d3c5507c7 (patch) | |
tree | 1cdecb73557e8ea037c49d323273048fbfd6339f | |
parent | 5aec6298cfc2ca9889f9fababf5d38281ce0a192 (diff) | |
download | dotfiles-a35eeb19b96a2de797df192664c5480d3c5507c7.tar.gz dotfiles-a35eeb19b96a2de797df192664c5480d3c5507c7.tar.bz2 dotfiles-a35eeb19b96a2de797df192664c5480d3c5507c7.zip |
(Emacs/config|core)~<SPC-fp>: go to config.org -> search org heading
-rw-r--r-- | Emacs/.config/emacs/config.org | 12 | ||||
-rw-r--r-- | Emacs/.config/emacs/core.org | 5 |
2 files changed, 6 insertions, 11 deletions
diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org index 9df46d4..7318b77 100644 --- a/Emacs/.config/emacs/config.org +++ b/Emacs/.config/emacs/config.org @@ -555,11 +555,8 @@ a 'project'. "t" #'projectile-test-project "r" #'projectile-run-project "q" #'projectile-replace-regexp) - (leader "p" '(projectile-command-map :which-key "Projectile")) - (nmap - "<f5>" #'projectile-compile-project - "<f6>" #'projectile-configure-project - "<f7>" #'projectile-test-project) + (leader + "p" '(projectile-command-map :which-key "Projectile")) :init (setq projectile-tags-command "ctags -Re -f \"%s\" %s \"%s\"" projectile-enable-caching t)) @@ -1257,6 +1254,7 @@ Some bindings for org mode. "Searches directory (of buffer) for org headings via counsel-rg" (interactive) (counsel-rg "^\\* " (file-name-directory (buffer-file-name)))) + (defun +org/search-config-headings () "Searches USER-EMACS-DIRECTORY for org headings via counsel-rg" (interactive) @@ -1270,8 +1268,8 @@ Some bindings for org mode. "i" #'org-insert-last-stored-link) (code-leader "D" #'org-babel-detangle) - (search-leader - "c" #'+org/search-config-headings) + (file-leader + "p" #'+org/search-config-headings) (search-leader :keymaps 'org-mode-map "I" #'+org/search-headings) diff --git a/Emacs/.config/emacs/core.org b/Emacs/.config/emacs/core.org index b0d7e2f..ef0270b 100644 --- a/Emacs/.config/emacs/core.org +++ b/Emacs/.config/emacs/core.org @@ -147,10 +147,7 @@ Some bindings that I couldn't fit elsewhere easily. (file-leader "f" #'find-file "F" #'find-file-other-frame - "s" #'save-buffer - "p" `(,(proc (interactive) - (find-file (concat user-emacs-directory "config.org"))) - :which-key "Open config.org")) + "s" #'save-buffer) (quit-leader "q" #'save-buffers-kill-terminal |