1
0
mirror of https://github.com/balkian/dotfiles.git synced 2024-11-24 21:22:29 +00:00

Added recentf, temp files emacs

This commit is contained in:
J. Fernando Sánchez 2015-09-22 16:44:32 +02:00
parent c29fdd9625
commit d829dd0959
2 changed files with 24 additions and 8 deletions

View File

@ -371,13 +371,31 @@
(setq revert-buffer-function 'revert-buffer-keep-history) (setq revert-buffer-function 'revert-buffer-keep-history)
(require 'recentf) (use-package recentf
(recentf-mode 1) :config (progn
(setq recentf-max-saved-items 300) (recentf-mode 1)
(setq recentf-max-menu-items 20) (setq recentf-max-saved-items 300)
(setq recentf-max-menu-items 20)
)
)
(eval-after-load 'tramp '(setenv "SHELL" "/bin/bash")) (eval-after-load 'tramp '(setenv "SHELL" "/bin/bash"))
(setq tramp-default-method "ssh") (setq tramp-default-method "ssh")
;; Don't clover my folders
(setq
backup-by-copying t ; don't clobber symlinks
delete-old-versions t
kept-new-versions 6
kept-old-versions 2
version-control t) ; use versioned backups
(setq backup-directory-alist
`((".*" . ,temporary-file-directory)))
(setq auto-save-file-name-transforms
`((".*" , temporary-file-directory t)))
;; Preven #file#.txt files
(setq create-lockfiles nil)
(provide '.emacs) (provide '.emacs)

View File

@ -18,7 +18,7 @@ fi
# #
export EDITOR='vi' export EDITOR='vi'
export VISUAL="myemcs" export VISUAL="myemacs"
export ALTERNATE_EDITOR="" export ALTERNATE_EDITOR=""
export PAGER='less' export PAGER='less'
@ -73,8 +73,6 @@ if [[ ! -d "$TMPDIR" ]]; then
mkdir -p -m 700 "$TMPDIR" mkdir -p -m 700 "$TMPDIR"
fi fi
alias sudo="sudo "
# Docker goodies # Docker goodies
alias drm="docker rm" alias drm="docker rm"
alias drun="docker run" alias drun="docker run"