mirror of
https://github.com/correl/dotfiles.git
synced 2024-11-16 11:09:29 +00:00
[emacs] Include new snippets in the generated config
This commit is contained in:
parent
560d419684
commit
8edeffdf01
1 changed files with 5 additions and 0 deletions
|
@ -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.
|
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
|
#+begin_src emacs-lisp
|
||||||
(setq backup-directory-alist '(("." . "~/.emacs.d/backups")))
|
(setq backup-directory-alist '(("." . "~/.emacs.d/backups")))
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
Disk space is cheap. Save lots.
|
Disk space is cheap. Save lots.
|
||||||
|
|
||||||
|
#+name: other
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(setq delete-old-versions -1)
|
(setq delete-old-versions -1)
|
||||||
(setq version-control t)
|
(setq version-control t)
|
||||||
|
@ -404,6 +406,8 @@
|
||||||
#+end_src
|
#+end_src
|
||||||
** History
|
** History
|
||||||
From http://www.wisdomandwonder.com/wordpress/wp-content/uploads/2014/03/C3F.html
|
From http://www.wisdomandwonder.com/wordpress/wp-content/uploads/2014/03/C3F.html
|
||||||
|
|
||||||
|
#+name: other
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(setq savehist-file "~/.emacs.d/savehist")
|
(setq savehist-file "~/.emacs.d/savehist")
|
||||||
(savehist-mode 1)
|
(savehist-mode 1)
|
||||||
|
@ -420,6 +424,7 @@
|
||||||
http://emacsredux.com/blog/2013/03/27/copy-filename-to-the-clipboard/
|
http://emacsredux.com/blog/2013/03/27/copy-filename-to-the-clipboard/
|
||||||
https://github.com/bbatsov/prelude
|
https://github.com/bbatsov/prelude
|
||||||
|
|
||||||
|
#+name: other
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(defun prelude-copy-file-name-to-clipboard ()
|
(defun prelude-copy-file-name-to-clipboard ()
|
||||||
"Copy the current buffer file name to the clipboard."
|
"Copy the current buffer file name to the clipboard."
|
||||||
|
|
Loading…
Reference in a new issue