Discussion:
[Q] what is mean posting-from-work-p in gnus-posting-style
(too old to reply)
황병희
2019-11-25 10:16:13 UTC
Permalink
Hellow, i am seeing Gnus manual [1]. At there is odd statement.

#+BEGIN_SRC emacs lisp
(setq gnus-posting-styles
'((".*"
(signature-file "~/.signature"))
((posting-from-work-p) ;; A user defined function
(signature-file "~/.work-signature"))))
#+END_SRC

What does (posting-from-work-p) means?
Actually i did fail to read and understand...

Sincerely,

[1]https://www.gnu.org/software/emacs/manual/html_node/gnus/Posting-Styles.html
--
^고맙습니다 _地平天成_ 감사합니다_^))//
Alberto Luaces
2019-11-25 12:58:14 UTC
Permalink
Post by 황병희
Hellow, i am seeing Gnus manual [1]. At there is odd statement.
#+BEGIN_SRC emacs lisp
(setq gnus-posting-styles
'((".*"
(signature-file "~/.signature"))
((posting-from-work-p) ;; A user defined function
(signature-file "~/.work-signature"))))
#+END_SRC
What does (posting-from-work-p) means?
Actually i did fail to read and understand...
It is a fictitious (example) function that could be able to know if you
are at your work desk or at any other place, in order to select the
appropriate posting style.

Actually, it is an example of the degree of customization that you can
reach with posting styles, since they can also evaluate custom elisp
functions that can output different things even after configuration
time.
--
Alberto
황병희
2019-11-26 02:25:51 UTC
Permalink
Post by Alberto Luaces
Actually, it is an example of the degree of customization that you can
reach with posting styles, since they can also evaluate custom elisp
functions that can output different things even after configuration
time.
So i have to study elisp, thanks for comments Alberto^^^
--
^고맙습니다 _地平天成_ 감사합니다_^))//
rn
2020-01-22 08:32:45 UTC
Permalink
better still, you rewrite gnus in elisp++ which you have to invent
yourself, of course.

Loading...