Skip to content

Instantly share code, notes, and snippets.

View daniel-koudouna's full-sized avatar

Daniel Koudouna daniel-koudouna

View GitHub Profile
@daniel-koudouna
daniel-koudouna / evil-insert-fix.el
Last active September 19, 2021 00:53
Fixes the problem of certain functions adding input before the cursor when using evil mode in emacs
(defun my:is-end-of-line ()
"Compare point with end of line."
(let* ((pos (current-column))
(end-pos (save-excursion
(evil-end-of-line)
(current-column))))
(eq pos end-pos)))
(defun my:compare-with-end-of-word ()
"Compare point with end of word."