Skip to content

Instantly share code, notes, and snippets.

@yaotti
Created February 13, 2009 14:33
Show Gist options
  • Save yaotti/63926 to your computer and use it in GitHub Desktop.
Save yaotti/63926 to your computer and use it in GitHub Desktop.
;; insert "- " with nesting
;; for clmemo users
(defun change-log-insert-list()
(interactive)
(let* ((end-point (point))
(start-point (- end-point 2))
(str (buffer-substring start-point end-point)))
(if (string-equal "- " str)
(delete-backward-char 1))
(insert "- ")))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment