Discussion:
[O] turn on orgalist in message buffer
Uwe Brauer
2018-05-07 08:34:32 UTC
Permalink
Hi

Maybe I am old fashioned but is the only way of turning orgalist on in a
message buffer.

(defun turn-on-orgalist ()
(interactive)
(orgalist-mode 'toggle))

(add-hook 'mail-mode-hook 'turn-on-orgalist)
(add-hook 'message-mode-hook 'turn-on-orgalist)


I could use a anonymous lambda function, but I try to avoid that in a
hook.

Uwe Brauer
Nicolas Goaziou
2018-05-07 12:06:46 UTC
Permalink
Hello,
Post by Uwe Brauer
Maybe I am old fashioned but is the only way of turning orgalist on in a
message buffer.
(defun turn-on-orgalist ()
(interactive)
(orgalist-mode 'toggle))
(add-hook 'mail-mode-hook 'turn-on-orgalist)
(add-hook 'message-mode-hook 'turn-on-orgalist)
(add-hook 'mail-mode-hook #'orgalist-mode)
(add-hook 'message-mode-hook #'orgalist-mode)

should be enough.

Regards,
--
Nicolas Goaziou
Uwe Brauer
2018-05-07 18:21:06 UTC
Permalink
Post by Nicolas Goaziou
Hello,
(add-hook 'mail-mode-hook #'orgalist-mode)
(add-hook 'message-mode-hook #'orgalist-mode)
Ah! Thanks indeed it does. I was wondering whether there exists a simple
solution and in fact it does.

Loading...