Work around incompatibility between orgalist and yasnippet
[~bandali/configs] / lisp / bandali-message.el
index ca30dc4..4f3d551 100644 (file)
 
 (use-package footnote
   :after message
-  ;; :config
+  :config
   ;; (setq footnote-start-tag ""
   ;;       footnote-end-tag   ""
   ;;       footnote-style     'unicode)
+  (when (featurep 'which-key)
+    (which-key-add-major-mode-key-based-replacements 'message-mode
+      "C-c f n" "footnote"))
   :bind
   (:map message-mode-map
         :prefix-map b/footnote-prefix-map
@@ -92,8 +95,6 @@
         ("r" . footnote-renumber-footnotes)
         ("s" . footnote-set-style)))
 
-(use-package message-x)
-
 (comment
   (use-package message-x
     :custom
 
 (use-package orgalist
   :after message
-  :hook (message-mode . orgalist-mode))
+  :hook (message-mode . (lambda ()
+                          ;; work around incompatibility between
+                          ;; orgalist and yasnippet
+                          (yas-minor-mode -1)
+                          (orgalist-mode 1)
+                          (yas-minor-mode 1))))
 
 (provide 'bandali-message)
 ;;; bandali-message.el ends here