forked from colonelpanic/dotfiles
imalison:prefix-alternative
This commit is contained in:
parent
d67861b96e
commit
a464c18a15
@ -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")))
|
||||
|
Loading…
Reference in New Issue
Block a user