diff --git a/.emacs.d/emacs.org b/.emacs.d/emacs.org index ecd9b46..ac93a5e 100644 --- a/.emacs.d/emacs.org +++ b/.emacs.d/emacs.org @@ -390,12 +390,14 @@ This is one of the things people usually want to change right away. By default, Emacs saves backup files in the current directory. These are the files ending in =~= that are cluttering up your directory lists. The following code stashes them all in =~/.emacs.d/backups=, where I can find them with =C-x C-f= (=find-file=) if I really need to. + #+name: other #+begin_src emacs-lisp (setq backup-directory-alist '(("." . "~/.emacs.d/backups"))) #+end_src Disk space is cheap. Save lots. + #+name: other #+begin_src emacs-lisp (setq delete-old-versions -1) (setq version-control t) @@ -404,6 +406,8 @@ #+end_src ** History From http://www.wisdomandwonder.com/wordpress/wp-content/uploads/2014/03/C3F.html + + #+name: other #+begin_src emacs-lisp (setq savehist-file "~/.emacs.d/savehist") (savehist-mode 1) @@ -420,6 +424,7 @@ http://emacsredux.com/blog/2013/03/27/copy-filename-to-the-clipboard/ https://github.com/bbatsov/prelude + #+name: other #+begin_src emacs-lisp (defun prelude-copy-file-name-to-clipboard () "Copy the current buffer file name to the clipboard."