better backup folder location ; make ido.last gitignore more robust
This commit is contained in:
parent
336dd0a92d
commit
593b663560
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -1,7 +1,8 @@
|
||||||
*.elc
|
*.elc
|
||||||
orig/
|
orig/
|
||||||
ido.last
|
**ido.last**
|
||||||
**/auto-save-list
|
**/auto-save-list
|
||||||
|
**/backups
|
||||||
**/bookmarks
|
**/bookmarks
|
||||||
**/persp-confs
|
**/persp-confs
|
||||||
**/beancount-mode
|
**/beancount-mode
|
|
@ -199,7 +199,21 @@
|
||||||
(ido-mode 1)
|
(ido-mode 1)
|
||||||
(setq-default tab-width 4) ; sanity!
|
(setq-default tab-width 4) ; sanity!
|
||||||
(electric-indent-mode 0) ; return should NOT fuck with the indentation of the previous line
|
(electric-indent-mode 0) ; return should NOT fuck with the indentation of the previous line
|
||||||
(setq backup-directory-alist `(("." . (expand-file-name "saves" user-emacs-directory)))) ; Move the auto backups to a dedicated 'zone'
|
|
||||||
|
;; make typing delete/overwrites selected text
|
||||||
|
(delete-selection-mode 1)
|
||||||
|
|
||||||
|
;; UTF-8 as default encoding
|
||||||
|
(set-default-coding-systems 'utf-8)
|
||||||
|
(set-language-environment "UTF-8")
|
||||||
|
(set-default-coding-systems 'utf-8-unix)
|
||||||
|
|
||||||
|
; backups
|
||||||
|
(defconst kmn/backup-dir
|
||||||
|
(expand-file-name "backups" user-emacs-directory))
|
||||||
|
(unless (file-exists-p kmn/backup-dir)
|
||||||
|
(make-directory kmn/backup-dir))
|
||||||
|
(setq backup-directory-alist `((kmn/backup-dir)))
|
||||||
(setq backup-by-copying t) ; safest form of backup file creation
|
(setq backup-by-copying t) ; safest form of backup file creation
|
||||||
; Config backups so we have *more*, not less
|
; Config backups so we have *more*, not less
|
||||||
(setq delete-old-versions t
|
(setq delete-old-versions t
|
||||||
|
@ -207,13 +221,6 @@
|
||||||
kept-old-versions 3
|
kept-old-versions 3
|
||||||
version-control t
|
version-control t
|
||||||
)
|
)
|
||||||
;; make typing delete/overwrites selected text
|
|
||||||
(delete-selection-mode 1)
|
|
||||||
;; UTF-8 as default encoding
|
|
||||||
(set-default-coding-systems 'utf-8)
|
|
||||||
(set-language-environment "UTF-8")
|
|
||||||
(set-default-coding-systems 'utf-8-unix)
|
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
;; set font for emoji -- DOES NOT WORK ON MOBILE
|
;; set font for emoji -- DOES NOT WORK ON MOBILE
|
||||||
(when (eq system-type 'windows-nt)
|
(when (eq system-type 'windows-nt)
|
||||||
|
|
Reference in a new issue