osx: move term specific configuration to post-init

This commit is contained in:
syl20bnr 2016-01-24 11:55:11 -05:00
parent 09c466ac88
commit 6f21ccbc64
2 changed files with 5 additions and 4 deletions

View file

@ -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)

View file

@ -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)))