[Emacs] Simpler self-screenshot function
This commit is contained in:
parent
3b301d3bb6
commit
696c7cff3e
@ -574,11 +574,10 @@ As shown by the function `', type can weild the value `svg',
|
|||||||
|
|
||||||
This function will output in /tmp a file beginning with \"Emacs\"
|
This function will output in /tmp a file beginning with \"Emacs\"
|
||||||
and ending with the extension of the requested TYPE."
|
and ending with the extension of the requested TYPE."
|
||||||
(interactive)
|
(interactive (list
|
||||||
(let* ((type (if type type
|
(intern (completing-read "Screenshot type: "
|
||||||
(intern (completing-read "Screenshot Type: "
|
|
||||||
'(png svg pdf postscript)))))
|
'(png svg pdf postscript)))))
|
||||||
(extension (pcase type
|
(let* ((extension (pcase type
|
||||||
('png ".png")
|
('png ".png")
|
||||||
('svg ".svg")
|
('svg ".svg")
|
||||||
('pdf ".pdf")
|
('pdf ".pdf")
|
||||||
|
Loading…
Reference in New Issue
Block a user