Remove skip equal chars
Caused more problems than it solved
This commit is contained in:
parent
d24bcb590a
commit
ce6fa3c876
1 changed files with 0 additions and 15 deletions
|
@ -1388,21 +1388,6 @@
|
||||||
'oni:move-beginning-of-dwim)
|
'oni:move-beginning-of-dwim)
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
* Skip equal characters
|
|
||||||
|
|
||||||
When using, for example, =smartparens-mode= it can get confusing
|
|
||||||
which characters get overwritten when. Usually I'll want to skip
|
|
||||||
the character I type if it directly follows =point=.
|
|
||||||
|
|
||||||
#+BEGIN_SRC emacs-lisp
|
|
||||||
(defadvice self-insert-command (around oni:skip-if-equal activate)
|
|
||||||
"Skip over a character if it immediately follows point."
|
|
||||||
(if (and (eq (char-after) last-command-event)
|
|
||||||
(not (memq last-command-event '(?\ ?\n))))
|
|
||||||
(forward-char)
|
|
||||||
ad-do-it))
|
|
||||||
#+END_SRC
|
|
||||||
|
|
||||||
* All the rest
|
* All the rest
|
||||||
|
|
||||||
This still needs to be sorted out and documented, haven't had time
|
This still needs to be sorted out and documented, haven't had time
|
||||||
|
|
Loading…
Reference in a new issue