From a35eeb19b96a2de797df192664c5480d3c5507c7 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Tue, 23 Apr 2024 01:40:27 +0530 Subject: (Emacs/config|core)~: go to config.org -> search org heading --- Emacs/.config/emacs/config.org | 12 +++++------- Emacs/.config/emacs/core.org | 5 +---- 2 files changed, 6 insertions(+), 11 deletions(-) (limited to 'Emacs/.config/emacs') 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 - "" #'projectile-compile-project - "" #'projectile-configure-project - "" #'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 -- cgit v1.2.3-13-gbd6f