My Private Spacemacs Config (as a layer)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

26 lines
1.5 KiB

(use-package emms)
(spacemacs/set-leader-keys "amb" 'emms-browser)
(spacemacs/set-leader-keys "amr" 'emms-streams)
(spacemacs/set-leader-keys "aqn" 'emms-cue-next)
(spacemacs/set-leader-keys "aqp" 'emms-cue-previous)
(spacemacs/set-leader-keys "avw" 'venv-workon)
(spacemacs/set-leader-keys "avm" 'venv-mkvirtualenv)
(spacemacs/set-leader-keys "avW" 'venv-mkvirtualenv-using)
(spacemacs/set-leader-keys "avl" 'venv-lsvirtualenv)
(spacemacs/set-leader-keys "avr" 'venv-rmvirtualenv)
(spacemacs/set-leader-keys "avd" 'venv-deactivate)
(spacemacs/set-leader-keys "aqc" 'quick-calc)
(spacemacs/set-leader-keys "aqC" 'calendar)
(evil-define-key nil evil-normal-state-map "U" 'undo-tree-redo)
(global-unset-key (kbd "<down-mouse-3>"))
(global-unset-key (kbd "<mouse-3>"))
(global-set-key (kbd "<down-mouse-3>") 'evil-insert)
(global-set-key (kbd "<S-down-mouse-3>") 'evil-append-line)
(global-set-key (kbd "<mouse-3>") 'evil-force-normal-state)
(exwm-input-set-key (kbd "s-n") 'exwm-workspace-add)
(exwm-input-set-key (kbd "s-d") 'exwm-workspace-delete)
(exwm-input-set-key (kbd "s-b") 'ivy-switch-buffer)
(exwm-input-set-key (kbd "s-Q") (lambda () (interactive) (start-process "lock" (get-buffer-create "*tmp*") "/run/current-system/sw/bin/dm-tool" "lock")))
(exwm-input-set-key (kbd "s-v") 'spacemacs/exwm-launch-split-right)
(exwm-input-set-key (kbd "s-s") 'spacemacs/exwm-launch-split-below)
(exwm-input-set-key (kbd "s-\\") (lambda () (interactive) (start-process "screenshot" (get-buffer-create "*Scrot*") "scrot")))