diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el index 07c5e22..fa652b7 100644 --- a/emacs/.emacs.d/init.el +++ b/emacs/.emacs.d/init.el @@ -371,13 +371,31 @@ (setq revert-buffer-function 'revert-buffer-keep-history) -(require 'recentf) -(recentf-mode 1) -(setq recentf-max-saved-items 300) -(setq recentf-max-menu-items 20) - +(use-package recentf + :config (progn + (recentf-mode 1) + (setq recentf-max-saved-items 300) + (setq recentf-max-menu-items 20) + ) + ) (eval-after-load 'tramp '(setenv "SHELL" "/bin/bash")) (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) diff --git a/zsh/.zprofile b/zsh/.zprofile index 816c9c3..2792e25 100644 --- a/zsh/.zprofile +++ b/zsh/.zprofile @@ -18,7 +18,7 @@ fi # export EDITOR='vi' -export VISUAL="myemcs" +export VISUAL="myemacs" export ALTERNATE_EDITOR="" export PAGER='less' @@ -73,8 +73,6 @@ if [[ ! -d "$TMPDIR" ]]; then mkdir -p -m 700 "$TMPDIR" fi -alias sudo="sudo " - # Docker goodies alias drm="docker rm" alias drun="docker run"