Emacs mu4e: fix for timezone problem
The timezone of the citation line was always GMT which could be confusing for some recipients. An comment on https://groups.google.com/forum/#!topic/mu-discuss/JlDSKsm9X5Y provided a fix for this problem. The switch from %H:%M:%S to %Z is purly code-cosmetic and doesn't change the output. The setting of the timezone with setenv is not part of the comment mentioned above.
This commit is contained in:
parent
dd4cbd65b1
commit
6cfa709a75
1 changed files with 8 additions and 2 deletions
|
@ -100,6 +100,9 @@
|
||||||
;; https://www.reddit.com/r/emacs/comments/819v0h/how_to_speed_up_cursor_movement_by_10x/
|
;; https://www.reddit.com/r/emacs/comments/819v0h/how_to_speed_up_cursor_movement_by_10x/
|
||||||
auto-window-vscroll nil)
|
auto-window-vscroll nil)
|
||||||
|
|
||||||
|
;; set timezone
|
||||||
|
(setenv "TZ" "/etc/localtime")
|
||||||
|
|
||||||
;; disable cursor blinking
|
;; disable cursor blinking
|
||||||
(blink-cursor-mode -1)
|
(blink-cursor-mode -1)
|
||||||
|
|
||||||
|
@ -925,8 +928,11 @@
|
||||||
(mu4e))
|
(mu4e))
|
||||||
|
|
||||||
;; set citation line
|
;; set citation line
|
||||||
(setq message-citation-line-format "%f @ %Y-%m-%d %H:%M:%S %Z:\n")
|
(setq message-citation-line-format "%f @ %Y-%m-%d %T %Z:\n")
|
||||||
(setq message-citation-line-function 'message-insert-formatted-citation-line)
|
(setq message-citation-line-function
|
||||||
|
(lambda ()
|
||||||
|
(message-insert-formatted-citation-line
|
||||||
|
nil nil (car (current-time-zone)))))
|
||||||
|
|
||||||
;; macro for creating university mu4e contexts
|
;; macro for creating university mu4e contexts
|
||||||
(defmacro mu4e-add-university-context (context-name match-func mail-address full-name signature-file)
|
(defmacro mu4e-add-university-context (context-name match-func mail-address full-name signature-file)
|
||||||
|
|
Loading…
Reference in a new issue