mirror of
https://github.com/balkian/dotfiles.git
synced 2024-11-21 19:52:29 +00:00
Added recentf, temp files emacs
This commit is contained in:
parent
c29fdd9625
commit
d829dd0959
@ -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
|
||||||
|
:config (progn
|
||||||
(recentf-mode 1)
|
(recentf-mode 1)
|
||||||
(setq recentf-max-saved-items 300)
|
(setq recentf-max-saved-items 300)
|
||||||
(setq recentf-max-menu-items 20)
|
(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)
|
||||||
|
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user