aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Schneider <qsx@chaotikum.eu>2024-08-26 16:50:11 +0200
committerThomas Schneider <qsx@chaotikum.eu>2024-08-26 16:50:11 +0200
commit5163fb49ce27c08d47aeec84de9d4e76612bb178 (patch)
tree27f63d74190999f30662eccfee525b9b3db89e79
parent1964d2921019c3502289f06eaa964c9a14aa4f58 (diff)
Emacs: srefactor: Load after project.el
Brought to you by an afternoon of debugging. Incantations used for debugging: (semantic-mode 1) ;; (when (boundp 'project-find-functions) ;; (message "init project-find-functions: %s" project-find-functions)) ;; (define-advice add-hook ;; (:around ;; (orig-fun &rest args) ;; debug) ;; (progn ;; (when (eq (nth 0 args) 'project-find-functions) ;; (backtrace)) ;; (let ((res (apply orig-fun args))) ;; (when (eq (nth 0 args) 'project-find-functions) ;; (message "adv project-find-functions: %s" project-find-functions) ;; res)))) (use-package srefactor :bind (:map c-mode-map ("M-RET" . #'srefactor-refactor-at-point))) ;; (advice-remove 'add-hook 'add-hook@debug) ;; (when (boundp 'project-find-functions) ;; (message "init late project-find-functions: %s" project-find-functions))
-rw-r--r--dot.emacs.d/init.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/dot.emacs.d/init.el b/dot.emacs.d/init.el
index 0ce558f..b80cc05 100644
--- a/dot.emacs.d/init.el
+++ b/dot.emacs.d/init.el
@@ -101,7 +101,8 @@
(semantic-mode 1)
(use-package srefactor
:bind (:map c-mode-map
- ("M-RET" . #'srefactor-refactor-at-point)))
+ ("M-RET" . #'srefactor-refactor-at-point))
+ :after project)
(use-package elpy
:ensure t