 (key-seq-define-global "jj" 'avy-goto-word-or-subword-1)
 (key-seq-define-global "jl" 'goto-line)
 (key-seq-define-global "jk" 'avy-goto-char-timer)
-(key-seq-define-global "JJ" 'crux-switch-to-previous-buffer)
+;; (key-seq-define-global "JJ" 'crux-switch-to-previous-buffer)
 ;; (key-seq-define-global "bb" 'my-helm-projectile-buffers-list)
 (key-chord-mode +1)
 

(global-set-key (kbd "C-a") 'crux-move-beginning-of-line)
(global-set-key (kbd "C-c d") 'crux-duplicate-current-line-or-region)

(autoload 'zap-up-to-char "misc")
(global-set-key (kbd "M-z") 'zap-up-to-char)

(with-eval-after-load 'whitespace
  (diminish 'whitespace-mode))

(setq whitespace-line-column 90
      whitespace-style '(face trailing newline))

(global-set-key (kbd "M-\\") 'shrink-whitespace)

(autoload 'er/expand-region "expand-region")
(global-set-key (kbd "C-=") 'er/expand-region)

(global-set-key (kbd "C-c r") 'vr/replace)

(diminish 'eldoc-mode)

(add-hook 'lisp-interaction-mode-hook 'eldoc-mode)
(add-hook 'ielm-mode-hook 'eldoc-mode)

(require 'rainbow-mode)
(diminish 'rainbow-mode)
(add-hook 'emacs-lisp-mode-hook 'rainbow-mode)
(add-hook 'js2-mode-hook 'rainbow-mode)

(require 'highlight-symbol)
(diminish 'highlight-symbol-mode)
(setq highlight-symbol-idle-delay 0.5)
(set-face-background 'highlight-symbol-face "gray78")
;; (set-face-attribute 'highlight-symbol-face nil :underline t :background "gray85")

;; (setq sml/no-confirm-load-theme t)
;; (sml/setup)
;; (setq sml/theme 'respectful)

(require 'smart-mark)
(smart-mark-mode)

(add-to-list 'auto-mode-alist '("\\.h\\'" . c++-mode))
