From 5163fb49ce27c08d47aeec84de9d4e76612bb178 Mon Sep 17 00:00:00 2001 From: Thomas Schneider Date: Mon, 26 Aug 2024 16:50:11 +0200 Subject: 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)) --- dot.emacs.d/init.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'dot.emacs.d/init.el') 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 -- cgit v1.2.3