Last active
August 29, 2015 14:17
-
-
Save camdez/c0f4c53ee847d5d1e2f0 to your computer and use it in GitHub Desktop.
Add new Emacs experiment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun camdez/add-experiment () | |
(interactive) | |
(find-file camdez/experiments-file) | |
(goto-char (point-min)) | |
(re-search-forward ";;; Code:") | |
(insert "\n\n") | |
(camdez/lisp-insert-hr) | |
(insert ";; ") | |
(insert-date-and-time) | |
(insert "\n\n")) | |
(global-set-key (kbd "C-c x") 'camdez/add-experiment) |
Hi @willtmonroe, sorry about not getting back to you sooner—I just saw this. You can find the function here. I think it was in my experimental file (of all places...) at the time that you looked for it.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello, thanks for your suggestion regarding the creation of an "experimental.el" file to use for the purpose of trying out less stable code in my Emacs config. I'm not sure if you answer questions about the code you place here but I was wondering about the "camdez/lisp-insert-hr". I can't seem to find an analogous expression in Emacs Lisp although my proficiency is very limited. I searched for "lisp-insert-hr" and "insert-horizontal". I also took at look at your configuration but I couldn't find it there. I'm guessing it's for the insertion of a horizontal rule of some kind. If you happen to have this handy, I'd love to see it. But again, thanks for the suggestion.