summaryrefslogtreecommitdiffstats
path: root/init.el
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2019-12-20 17:02:47 +0000
committerMatthew Lemon <lemon@matthewlemon.com>2019-12-20 17:02:47 +0000
commitbd2bff6bb952408a82ba269573474dd0d0ec8ab2 (patch)
treee21a5a8d2b6b333a380c5c09a9528e194f18e3aa /init.el
parent2eb41c8cf628faee91c31bf6476807a161a518be (diff)
put back evil, installed a new theme
Diffstat (limited to '')
-rw-r--r--init.el43
1 files changed, 33 insertions, 10 deletions
diff --git a/init.el b/init.el
index 1b6acba..84e000d 100644
--- a/init.el
+++ b/init.el
@@ -30,7 +30,7 @@
;; Highlight line
;;(setq set-face-background hl-line-face "pale goldenrod")
-(hl-line-mode 1)
+;;(hl-line-mode 1)
;; Region colour
(set-face-attribute 'region nil :background "#633" :foreground "#ffffff")
@@ -94,13 +94,36 @@
:config
(add-hook 'prog-mode-hook 'rainbow-delimiters-mode))
-(use-package highlight-symbol
+;; (use-package highlight-symbol
+;; :config
+;; (add-hook 'prog-mode-hook 'highlight-symbol-mode)
+;; (set-face-background 'highlight-symbol-face "#a45bad")
+;; (set-face-foreground 'highlight-symbol-face "#ffffff")
+;; (setq highlight-symbol-idle-delay 0.5)
+;; :bind (("M-n" . highlight-symbol-next)
+;; ("M-p" . highlight-symbol-prev)))
+
+
+;; Evil mode
+(use-package evil
:config
- (add-hook 'prog-mode-hook 'highlight-symbol-mode)
- (set-face-background 'highlight-symbol-face "#a45bad")
- (setq highlight-symbol-idle-delay 0.5)
- :bind (("M-n" . highlight-symbol-next)
- ("M-p" . highlight-symbol-prev)))
+ (evil-mode 1)
+ (mapc (lambda (mode)
+ (evil-set-initial-state mode 'emacs)) '(elfeed-show-mode
+ elfeed-search-mode
+ forge-pullreq-list-mode
+ forge-topic-list-mode
+ dired-mode
+ help-mode
+ info
+ tide-references-mode
+ image-dired-mode
+ image-dired-thumbnail-mode
+ eww-mode))
+
+ (define-key evil-normal-state-map (kbd "{") 'evil-next-buffer)
+ (define-key evil-normal-state-map (kbd "}") 'evil-prev-buffer)
+ )
;; Ace Jump
(use-package ace-jump-mode
@@ -207,9 +230,9 @@
(load custom-file t)
;; Basic auto-complete
-;; (use-package auto-complete
-;; :config
-;; (ac-config-default))
+(use-package auto-complete
+ :config
+ (ac-config-default))
;; Handling tabs (for programming)