Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't break deft-mode #22

Merged
merged 1 commit into from
Apr 18, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Don't break deft-mode
Deft-mode uses a read-only buffer with a custom bound insertion function.
Before this one could not type the first character of the escape sequence in any note filter.
  • Loading branch information
trishume committed Apr 15, 2015
commit 05d9e5fc802cae355ac7516917de7f4aa9d521a7
4 changes: 3 additions & 1 deletion evil-escape.el
Original file line number Diff line number Diff line change
@@ -297,10 +297,12 @@ with a key sequence."
(when (not buffer-read-only) (delete-char -1)))

(defun evil-escape--insert-state-delete-func ()
"Take care of term-mode."
"Take care of term-mode and other weird modes."
(interactive)
(cond ((eq 'term-mode major-mode)
(call-interactively 'term-send-backspace))
((eq 'deft-mode major-mode)
(call-interactively 'deft-filter-increment))
(t (evil-escape--default-delete-func))))

(defun evil-escape--escape-with-q ()