(when *is-a-mac*
  (setq mac-command-modifier 'meta)
  (setq mac-option-modifier 'none)
  (setq default-input-method "MacOSX")
  ;; Make mouse wheel / trackpad scrolling less jerky
  (setq mouse-wheel-scroll-amount '(0.001))
  (when *is-cocoa-emacs*
    ;; Woohoo!!
    (global-set-key (kbd "M-`") 'ns-next-frame)
    (global-set-key (kbd "M-h") 'ns-do-hide-emacs)
    (eval-after-load 'nxml-mode
      '(define-key nxml-mode-map (kbd "M-h") nil))
    (global-set-key (kbd "M-ˍ") 'ns-do-hide-others) ;; what describe-key reports for cmd-option-h
    (global-set-key (kbd "M-c") 'ns-copy-including-secondary)
    (global-set-key (kbd "M-v") 'ns-paste-secondary)))


(provide 'init-osx-keys)

(when *is-a-mac*
  (setq mac-command-modifier 'meta)
  (setq mac-option-modifier 'none)
  (setq default-input-method "MacOSX")
  ;; Make mouse wheel / trackpad scrolling less jerky
  (setq mouse-wheel-scroll-amount '(0.001))
  (when *is-cocoa-emacs*
    ;; Woohoo!!
    (global-set-key (kbd "M-`") 'ns-next-frame)
    (global-set-key (kbd "M-h") 'ns-do-hide-emacs)
    (eval-after-load 'nxml-mode
      '(define-key nxml-mode-map (kbd "M-h") nil))
    (global-set-key (kbd "M-ˍ") 'ns-do-hide-others) ;; what describe-key reports for cmd-option-h
    ))


(provide 'init-osx-keys)

Remove M-c and M-v bindings under OS X.
Remove M-c and M-v bindings under OS X.

M-v clashes with the default key for scrolling up.

It's arguably better to use the standard yank/kill bindings consistently
within Emacs.

dcorking/emacs.d,pairyo/emacs.d,jkaessens/emacs.d,blueseason/emacs.d,dhanunjaya/emacs.d,alant/emacs.d,Enzo-Liu/emacs.d,jhpx/emacs.d,shafayetkhan/emacs.d,mpwang/emacs.d,ruiyang/emacs.d,farzadbekran/emacs.d,haodaivshen/emacs.d,caoyuanqi/emacs.d,jachinpy/emacs.d,atreeyang/emacs.d,braveoyster/emacs.d,zhuoyikang/emacs.d,me020523/emacs.d,carlosliu/emacs.d,cjqw/emacs.d,zhaotai/.emacs.d,LittleLmp/emacs.d,boblannon/emacs.d,farzadbekran/emacs.d,farzadbekran/emacs.d,benkha/emacs.d,scorpionis/emacs.d,46do14/emacs.d,whizzzkid/emacs.d,lujianmei/emacs.d,renatoriccio/emacs.d,zenith-john/emacs.d,dongdonghu/.emacs.d,lust4life/emacs.d,lromang/emacs.d,kindoblue/emacs.d,ernest-dzf/emacs.d,wegatron/emacs.d,blueabysm/emacs.d,emuio/emacs.d,cyjia/emacs.d,Werewolflsp/emacs.d,roxolan/emacs.d,Togal/emacs.d,jthetzel/emacs.d,modkzs/emcs.d,baohaojun/emacs.d,danfengcao/emacs.d,ilove0518/emacs.d,ruiyang/emacs.d,Guoozz/emacs.d,hophacker/emacs.d,sgarciac/emacs.d,jachinpy/emacs.d,purcell/emacs.d,Shanicky/emacs.d,krzysz00/emacs.d,bibaijin/emacs.d,mmqmzk/emacs.d,fengxl/emacs.d,exclamaforte/emacs.d,LKI/emacs.d,qianwan/emacs.d,kongfy/emacs.d,wenpincui/emacs.d,arthurl/emacs.d,farzadbekran/emacs.d,gsmlg/emacs.d,qinshulei/emacs.d,farzadbekran/emacs.d,hkcqr/emacs.d,svenyurgensson/emacs.d,DarkThrone/emacs.d,Jadecity/PurcellEmacs.d