 (define-key function-key-map "\e[=" (kbd "C-="))
 (define-key function-key-map "\e[." (kbd "C-."))
 
-(define-key (current-global-map) [remap yank-pop] 'browse-kill-ring)   ;; remap yank-pop
-(after 'browse-kill-ring (setq browse-kill-ring-replace-yank t))
-
 (define-key global-map (kbd "RET") 'newline-and-indent)
 ;; (define-key c-mode-map (kbd "TAB") 'company-indent-or-complete-common)
 ;; (define-key c++-mode-map (kbd "TAB") 'company-indent-or-complete-common)
 (global-set-key (kbd "M-r") 'recompile)
-(global-set-key (kbd "C-=") 'er/expand-region)
-(global-set-key (kbd "C-c t") 'visit-term-buffer)
-(global-set-key (kbd "C-c C-f") 'projectile-find-file)
-
-(global-set-key (kbd "C-;") 'avy-goto-word-or-subword-1)
-(global-set-key (kbd "M-g l") 'avy-goto-line)
-(after 'isearch (define-key isearch-mode-map (kbd "C-;") 'avy-isearch))
-
-(global-set-key (kbd "C-a") 'mwim-beginning-of-code-or-line)
-(global-set-key (kbd "C-x C-b") 'ibuffer)
-(global-set-key (kbd "C-s") 'isearch-forward-regexp)
-(global-set-key (kbd "C-r") 'isearch-backward-regexp)
-(global-set-key (kbd "C-M-s") 'isearch-forward)
-(global-set-key (kbd "C-M-r") 'isearch-backward)
-;; (global-set-key (kbd "C-e") 'mwim-end-of-code-or-line)
-(global-set-key (kbd "C-.") 'imenu-anywhere)
-(global-set-key (kbd "M-\\") 'shrink-whitespace)
 (global-set-key (kbd "M-o") 'other-window)
+
+(setq font-lock-maximum-decoration '((racket-mode . t) (t . 1)))
+
+;; (add-hook 'c++-mode-hook 'irony-mode)
+;; (add-hook 'c-mode-hook 'irony-mode)
+;; (add-hook 'objc-mode-hook 'irony-mode)
+
+;; (defun my-irony-mode-hook ()
+;;   (define-key irony-mode-map [remap completion-at-point]
+;;     'irony-completion-at-point-async)
+;;   (define-key irony-mode-map [remap complete-symbol]
+;;     'irony-completion-at-point-async))
+;; (add-hook 'irony-mode-hook 'my-irony-mode-hook)
+;; (add-hook 'irony-mode-hook 'irony-cdb-autosetup-compile-options)
+
+;; (require 'company)
+;; (require 'company-irony)
+;; (setq company-backends (delete 'company-semantic company-backends)
+;;       company-global-modes '(not term-mode)
+;;       company-transformers '(company-sort-by-occurrence)
+;;       company-minimum-prefix-length 2
+;;       company-selection-wrap-around t
+;;       company-show-numbers t
+;;       company-require-match nil
+;;       company-dabbrev-downcase nil)
+;; (add-to-list 'company-backends 'company-irony)
+;; ;; (setq company-idle-delay 0.1)
+;; (add-hook 'prog-mode-hook (lambda () (company-mode 1)))
+


  (add-to-list 'mu4e-view-actions
               '("View in browser" . mu4e-msgv-action-view-in-browser) t)

  (global-set-key (kbd "C-c m") '(lambda ()
                                   (interactive)
                                   (mu4e)
                                   (mu4e-update-mail-and-index nil))))

(defun setup-cider ()
  (require 'cider)
  (add-hook 'cider-mode-hook 'cider-turn-on-eldoc-mode)
  ;; (setq cider-auto-mode nil)
  ;; (setq nrepl-log-messages nil)

(setq-default indent-tabs-mode nil)
(setq-default tab-width 4)
(setq-default py-indent-offset 4)
;; (setq-default abbrev-mode t)
(winner-mode t)   ;; C-c <left|right>
(set-language-environment "czech")
(setq default-input-method "czech-qwerty")
