From 09700f3b8309c69c443b991b48c23e3f6368554b Mon Sep 17 00:00:00 2001 From: Marcel Kapfer Date: Fri, 23 Feb 2018 09:32:53 +0100 Subject: [PATCH] Emacs: combine other variables --- emacs/emacs.el | 45 ++++++++++++++++++++++++++------------------- 1 file changed, 26 insertions(+), 19 deletions(-) diff --git a/emacs/emacs.el b/emacs/emacs.el index 1943652..6a8cb2f 100644 --- a/emacs/emacs.el +++ b/emacs/emacs.el @@ -65,26 +65,33 @@ (prefer-coding-system 'utf-8-unix) (set-language-environment "UTF-8") -;; disable startup screen -(setq inhibit-startup-screen t) +;; general options +(setq + ;; disable startup screen + inhibit-startup-screen t + ;; visual bell instead of BEEP + visible-bell 1 + ;; set text in scratch to nil + initial-scratch-message nil + ;; Don't truncate lines + truncate-lines nil + ;; Maximize threshold for garbage collection to 10MB for less gc + gc-cons-treshold (* 10 1024 1024) + ;; confirm before closing emacs + 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) -;; visual bell instead of BEEP -(setq visible-bell 1) - -;; set text in scratch to nil -(setq initial-scratch-message nil) - -;; Don't truncate lines -(setq truncate-lines nil) - -;; Set default connection method for TRAMP -(setq tramp-default-method "ssh") - -;; Maximize threshold for garbage collection to 10MB for less gc -(setq gc-cons-treshold (* 10 1024 1024)) - -;; confirm before closing emacs -(setq confirm-kill-emacs #'y-or-n-p) +;; disable cursor blinking +(blink-cursor-mode -1) ;; activate winner mode (when (fboundp 'winner-mode)