emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* turn on orgalist in message buffer
@ 2018-05-07  8:34 Uwe Brauer
  2018-05-07 12:06 ` Nicolas Goaziou
  0 siblings, 1 reply; 3+ messages in thread
From: Uwe Brauer @ 2018-05-07  8:34 UTC (permalink / raw)
  To: emacs-orgmode



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 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: turn on orgalist in message buffer
  2018-05-07  8:34 turn on orgalist in message buffer Uwe Brauer
@ 2018-05-07 12:06 ` Nicolas Goaziou
  2018-05-07 18:21   ` Uwe Brauer
  0 siblings, 1 reply; 3+ messages in thread
From: Nicolas Goaziou @ 2018-05-07 12:06 UTC (permalink / raw)
  To: emacs-orgmode

Hello,

Uwe Brauer <oub@mat.ucm.es> writes:

> 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: turn on orgalist in message buffer
  2018-05-07 12:06 ` Nicolas Goaziou
@ 2018-05-07 18:21   ` Uwe Brauer
  0 siblings, 0 replies; 3+ messages in thread
From: Uwe Brauer @ 2018-05-07 18:21 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 263 bytes --]


   > Hello,
   > Uwe Brauer <oub@mat.ucm.es> writes:


   >   (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.

[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5025 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-05-07 18:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-07  8:34 turn on orgalist in message buffer Uwe Brauer
2018-05-07 12:06 ` Nicolas Goaziou
2018-05-07 18:21   ` Uwe Brauer

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).