osx: move term specific configuration to post-init
This commit is contained in:
parent
09c466ac88
commit
6f21ccbc64
|
@ -18,10 +18,6 @@
|
|||
(global-set-key (kbd "s-0") 'spacemacs/reset-font-size)
|
||||
(global-set-key (kbd "s-q") 'save-buffers-kill-terminal)
|
||||
(global-set-key (kbd "s-v") 'yank)
|
||||
;; Allow s-v to paste in term-mode
|
||||
(add-hook 'term-mode-hook
|
||||
(lambda ()
|
||||
(define-key term-raw-map (kbd "s-v") 'term-paste)))
|
||||
(global-set-key (kbd "s-c") 'evil-yank)
|
||||
(global-set-key (kbd "s-a") 'mark-whole-buffer)
|
||||
(global-set-key (kbd "s-x") 'kill-region)
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
launchctl
|
||||
reveal-in-osx-finder
|
||||
helm
|
||||
term
|
||||
))
|
||||
|
||||
(when (spacemacs/system-is-mac)
|
||||
|
@ -83,3 +84,7 @@
|
|||
;; https://github.com/emacs-helm/helm/issues/799
|
||||
(setq helm-locate-fuzzy-match nil)
|
||||
(setq helm-locate-command "mdfind -name %s %s")))))
|
||||
|
||||
(defun osx/post-init-term ()
|
||||
(with-eval-after-load 'term
|
||||
(define-key term-raw-map (kbd "s-v") 'term-paste)))
|
||||
|
|
Loading…
Reference in a new issue