.emacs.d

the most bloated Emacs config on this planet
git clone https://git.trogloxene.org/.emacs.d.git
Log | Files | Refs

commit 05a1ff4ad8e53ead6c42a2169bcd72bbe6366bc5
parent 224095d93434a06f11dcac19a1757e7c555ddcb5
Author: andsy10 <andsy1016@gmail.com>
Date:   Mon, 19 Oct 2026 10:42:37 +0800

Add consult-symbol for browsing elisp symbols

Diffstat:
Mlisp/init-elisp.el | 12++++++++++++
Mlisp/init-kbd.el | 2+-
2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/lisp/init-elisp.el b/lisp/init-elisp.el @@ -4,6 +4,18 @@ ;;; Code: +;; find the source of elisp symbol +(use-package consult-symbol + :straight + (consult-symbol :type git + :host nil + :repo "https://git.trogloxene.org/consult-symbol.git") + :init + (defun my-consult-symbol-hack (fun) + (let ((find-file-visit-truename t)) + (funcall fun))) + (advice-add #'consult-symbol :around #'my-consult-symbol-hack)) + ;; from Purcell's Emacs configuration ;; enable some features for lisp files (defun my-maybe-set-readonly () diff --git a/lisp/init-kbd.el b/lisp/init-kbd.el @@ -406,7 +406,7 @@ "g" #'consult-grep "G" #'consult-git-grep "!" #'consult-flycheck - "e" #'consult-eglot-symbols + "e" #'consult-symbol "l" #'consult-locate "h" #'my-consult-fd-home "m" #'consult-man