summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmin Bandali <bandali@gnu.org>2020-04-26 16:39:03 -0400
committerAmin Bandali <bandali@gnu.org>2020-04-26 16:39:03 -0400
commitff9cc25d59e324575e47e88bcccb3d4f291ff616 (patch)
tree3a73a7db34cade84cd6ef44175a5c72a2522b3c7
parent076e900995d9d71d54e3788691cd0958f38c6dfc (diff)
downloadconfigs-ff9cc25d59e324575e47e88bcccb3d4f291ff616.tar.gz
configs-ff9cc25d59e324575e47e88bcccb3d4f291ff616.tar.xz
configs-ff9cc25d59e324575e47e88bcccb3d4f291ff616.zip
Work around incompatibility between orgalist and yasnippet
* lisp/bandali-message.el: Disable yasnippet and enabled it after enabling orgalist, to avoid the following infinite recursion error in message-mode when auto-fill is triggered: Debugger entered--Lisp error: (error "Variable binding depth exceeds max-specpdl-size") current-fill-column() orgalist--auto-fill(yas--auto-fill) apply(orgalist--auto-fill yas--auto-fill nil) #f(advice-wrapper :around yas--auto-fill orgalist--auto-fill)() yas--auto-fill() orgalist--auto-fill(yas--auto-fill) apply(orgalist--auto-fill yas--auto-fill nil) #f(advice-wrapper :around yas--auto-fill orgalist--auto-fill)() yas--auto-fill() ... orgalist--auto-fill(yas--auto-fill) apply(orgalist--auto-fill yas--auto-fill nil) #f(advice-wrapper :around yas--auto-fill orgalist--auto-fill)() yas--auto-fill() internal-auto-fill() self-insert-command(1 32) funcall-interactively(self-insert-command 1 32) call-interactively(self-insert-command nil nil) command-execute(self-insert-command)
Diffstat (limited to '')
-rw-r--r--lisp/bandali-message.el7
1 files changed, 6 insertions, 1 deletions
diff --git a/lisp/bandali-message.el b/lisp/bandali-message.el
index 750188c..4f3d551 100644
--- a/lisp/bandali-message.el
+++ b/lisp/bandali-message.el
@@ -118,7 +118,12 @@
(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