imalison:prefix-alternative

This commit is contained in:
Ivan Malison 2015-08-05 11:22:28 -07:00
parent d67861b96e
commit a464c18a15

View File

@ -157,6 +157,11 @@
;; functions
;; =============================================================================
(defmacro imalison:prefix-alternative (name default alternative)
`(defun ,name (arg) (interactive "P")
(if arg (call-interactively (quote ,alternative))
(call-interactively (quote ,default)))))
(defun imalison:uuid ()
(interactive)
(s-replace "\n" "" (shell-command-to-string "uuid")))