Skip to content

Instantly share code, notes, and snippets.

@camdez
Last active August 29, 2015 14:17
Show Gist options
  • Save camdez/c0f4c53ee847d5d1e2f0 to your computer and use it in GitHub Desktop.
Save camdez/c0f4c53ee847d5d1e2f0 to your computer and use it in GitHub Desktop.
Add new Emacs experiment
(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)
@willtm
Copy link

willtm commented Mar 23, 2015

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.

@camdez
Copy link
Author

camdez commented Apr 13, 2015

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