Skip to content

Commit

Permalink
fix for evil search bug
Browse files Browse the repository at this point in the history
  • Loading branch information
synic committed Feb 8, 2021
1 parent 38c4ce5 commit fa29db6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
jbeans-theme.el
.spacemacs.env
9 changes: 9 additions & 0 deletions init.el
Original file line number Diff line number Diff line change
Expand Up @@ -596,6 +596,15 @@ you should place your code here."
;; Set the default web-mode engine for .html files to "django"
web-mode-engines-alist '(("django" . "\\.html\\'")))

;; prevent getting into insert mode permanently (which ends up causing `d` to
;; act like `dd`.
(defun kill-minibuffer ()
(interactive)
(when (windowp (active-minibuffer-window))
(evil-ex-search-exit)))

(add-hook 'mouse-leave-buffer-hook #'kill-minibuffer)

;; set GOPATH for go autocompletion
(setenv "GOPATH" "/Users/adam.olsen/Projects/go")
(setenv "PATH" (concat
Expand Down

1 comment on commit fa29db6

@kwarrick
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@synic Thanks for referencing the issue, that is clever! This was driving me absolutely mad.

Please sign in to comment.