Emacs: combine other variables

This commit is contained in:
Marcel Kapfer 2018-02-23 09:32:53 +01:00
parent 603c7255ee
commit 09700f3b83
Signed by: mmk2410
GPG key ID: CADE6F0C09F21B09

View file

@ -65,26 +65,33 @@
(prefer-coding-system 'utf-8-unix) (prefer-coding-system 'utf-8-unix)
(set-language-environment "UTF-8") (set-language-environment "UTF-8")
;; general options
(setq
;; disable startup screen ;; disable startup screen
(setq inhibit-startup-screen t) inhibit-startup-screen t
;; visual bell instead of BEEP ;; visual bell instead of BEEP
(setq visible-bell 1) visible-bell 1
;; set text in scratch to nil ;; set text in scratch to nil
(setq initial-scratch-message nil) initial-scratch-message nil
;; Don't truncate lines ;; Don't truncate lines
(setq truncate-lines nil) truncate-lines nil
;; Set default connection method for TRAMP
(setq tramp-default-method "ssh")
;; Maximize threshold for garbage collection to 10MB for less gc ;; Maximize threshold for garbage collection to 10MB for less gc
(setq gc-cons-treshold (* 10 1024 1024)) gc-cons-treshold (* 10 1024 1024)
;; confirm before closing emacs ;; confirm before closing emacs
(setq confirm-kill-emacs #'y-or-n-p) confirm-kill-emacs #'y-or-n-p
;; put a new line at the end of every file
require-final-newline t
;; use german directory in ispell
ispell-dictionary "german"
;;; always follow symlinks to git repos
vc-follow-symlinks t
;;; indent using spaces, not tabs
indent-tabs-mode nil
;; tab width
tab-width 2)
;; disable cursor blinking
(blink-cursor-mode -1)
;; activate winner mode ;; activate winner mode
(when (fboundp 'winner-mode) (when (fboundp 'winner-mode)