all repos — nixfiles @ 47434ec5414615851d09019b4d94abd536765026

System and user configuration, managed by nix and home-manager

Emacs: Fix compile error in restclient config

Alan Pearce
commit

47434ec5414615851d09019b4d94abd536765026

parent

053df601845b618847d56f837b9e33c4b52fcdca

1 file changed, 8 insertions(+), 8 deletions(-)

jump to
M tag-emacs/emacs.d/init.orgtag-emacs/emacs.d/init.org
@@ -2000,14 +2000,14 @@ calls. Feels a bit like using =org-babel=. I wonder if there’s an
integration between the two yet. #+BEGIN_SRC emacs-lisp -(use-package restclient - :mode ("\\.api\\'" . restclient-mode) - :config (progn - (defun imenu-restclient-sections () - (setq imenu-prev-index-position-function nil) - (add-to-list 'imenu-generic-expression '("Services" "^## ?\\(.+\\)$" 1) t) - (add-to-list 'imenu-generic-expression '("Calls" "^# ?\\(.+\\)$" 1) t)) - (add-hook restclient-mode-hook #'imenu-restclient-sections))) + (use-package restclient + :mode ("\\.api\\'" . restclient-mode) + :config (progn + (defun imenu-restclient-sections () + (setq imenu-prev-index-position-function nil) + (add-to-list 'imenu-generic-expression '("Services" "^## ?\\(.+\\)$" 1) t) + (add-to-list 'imenu-generic-expression '("Calls" "^# ?\\(.+\\)$" 1) t)) + (add-hook 'restclient-mode-hook #'imenu-restclient-sections))) #+END_SRC *** sgml-mode