(use-package ergoemacs-mode
:diminish undo-tree-mode
:init
(setq mac-command-modifier 'meta) ;; Otherwise it would be Alt on Mac (I want Cmd which was a default for stable version of ergoemacs-mode)
(setq mac-option-modifier nil)
(define-key key-translation-map (kbd "<f13>") (kbd "<menu>")) ;; <f13> is assigned to CAPSLOCK
(setq ergoemacs-theme nil) ;; Uses Standard Ergoemacs keyboard theme
(setq ergoemacs-keyboard-layout "us") ;; Assumes QWERTY keyboard layout
(setq ergoemacs-mode-line nil) ;; Does not work by just setting (diminish 'ergoemacs-mode)
(setq ergoemacs-handle-ctl-c-or-ctl-x 'only-C-c-and-C-x) ;; this should fix problem of applying org-mode keybindings on regions
(setq ergoemacs-command-loop-blink-character nil) ;; looks better
(setq ergoemacs-echo-function nil)
:config
(ergoemacs-mode 1)
(ergoemacs-theme-component extra ()
"Extra keys"
:layout "us"
:bind (("<menu> 1" . split-window-right)
("M-g" . my-delete-line)
("M-S-g" . my-backward-delete-line)
("M-e" . my-backward-delete-word)
("M-r" . my-delete-word)
("<menu> c" . company-complete)))
(ergoemacs-require 'extra))