add fez/screenshot and fez/swap-keyboard
This commit is contained in:
parent
0661bb9825
commit
87e774c516
15
custom.el
15
custom.el
|
@ -181,6 +181,21 @@
|
|||
(message (concat "Mouse "
|
||||
(if x-mouse-on "enabled." "disabled."))))
|
||||
|
||||
(defun fez/screenshot ()
|
||||
"Prompts the user for a filename and saves a screenshot at that path."
|
||||
(interactive)
|
||||
(let ((path (read-string "Filename: ")))
|
||||
(shell-command (concat "import -window root "
|
||||
path))))
|
||||
|
||||
(setq current-layout "nous")
|
||||
(defun fez/swap-keyboard ()
|
||||
"Swap between my selected keyboard layouts."
|
||||
(interactive)
|
||||
(cond ((string= current-layout "nous") (setq current-layout "ru"))
|
||||
(t (setq current-layout "nous")))
|
||||
(shell-command (concat "setxkbmap " current-layout)))
|
||||
|
||||
;; Eshell convinience commands.
|
||||
(defalias 'open 'find-file-other-window)
|
||||
(defalias 'clean 'eshell/clear-scrollback)
|
||||
|
|
Loading…
Reference in New Issue