mirror of https://github.com/djcb/mu.git
mu4e-view: open tmp files read-only
When using the "open-in-emacs" handler, open the temp file as read-only. It's a temp file, so editing isn't very useful.
This commit is contained in:
parent
de3c9a25e8
commit
20568cba70
|
@ -1164,7 +1164,7 @@ containing commas."
|
|||
(:name "line-count" :handler "wc -l" :receives pipe)
|
||||
;; open in this emacs instance; tries to use the attachment name,
|
||||
;; so emacs can use specific modes etc.
|
||||
(:name "emacs" :handler find-file :receives temp)
|
||||
(:name "emacs" :handler find-file-read-only :receives temp)
|
||||
;; open in this emacs instance, "raw"
|
||||
(:name "raw" :handler (lambda (str)
|
||||
(let ((tmpbuf
|
||||
|
|
Loading…
Reference in New Issue