summaryrefslogtreecommitdiff
path: root/emacs/.emacs
diff options
context:
space:
mode:
authorJulian T <julian@jtle.dk>2022-10-21 16:34:48 +0200
committerJulian T <julian@jtle.dk>2022-10-21 16:34:48 +0200
commit780b48bb855662a86db75165e7cb8aac4174cd5c (patch)
treeaa12db50432bae5ec507c311b2ee548100e30c79 /emacs/.emacs
parentf9c1f1514b03cfe828e94b2e99b9ae35eb168a5f (diff)
Haskell windmove and emacs in some buffers
Diffstat (limited to 'emacs/.emacs')
-rw-r--r--emacs/.emacs22
1 files changed, 21 insertions, 1 deletions
diff --git a/emacs/.emacs b/emacs/.emacs
index 07376b7..df93c8f 100644
--- a/emacs/.emacs
+++ b/emacs/.emacs
@@ -16,6 +16,26 @@
; (require 'evil-collection)
; (evil-collection-init)
+(evil-set-initial-state 'haskell-interactive-mode 'emacs)
+(evil-set-initial-state 'haskell-error-mode 'emacs)
+
+;; Windmove
+(defvar vim-move-mode-map
+ (let ((map (make-sparse-keymap)))
+ (define-key map (kbd "C-w") nil)
+ (define-key map (kbd "C-w l") 'windmove-right)
+ (define-key map (kbd "C-w h") 'windmove-left)
+ (define-key map (kbd "C-w j") 'windmove-down)
+ (define-key map (kbd "C-w k") 'windmove-up)
+ (define-key map (kbd "C-w C-w") 'other-window)
+ map) "vim-move-mode keymap.")
+
+(define-minor-mode vim-move-mode
+ "A minor mode where C-w works somewhat like what im used to."
+ :init-value t
+ :lighter " vim-move")
+(vim-move-mode 1)
+
(require 'magit)
(require 'undo-tree)
@@ -83,7 +103,7 @@
'(display-line-numbers-type 'relative)
'(global-display-line-numbers-mode t)
'(package-selected-packages
- '(magit undo-tree 'flycheck 'flycheck bbdb haskell-mode evil))
+ '(go-mode magit undo-tree 'flycheck 'flycheck bbdb haskell-mode evil))
'(tool-bar-mode nil)
'(warning-suppress-types '((org))))
(custom-set-faces