(setq ;; Set tramp terminal type tramp-terminal-type "tramp" ;; Mode-line ;; Mnemonics for eol eol-mnemonic-unix "(Unix)" ;; Display total size of buffer and column index size-indication-mode t ;; Column numbers from 1 column-number-indicator-zero-based nil ;; Line numbers column-number-mode t ;; No limit to line number displayed line-number-display-limit nil ;; Scroll smoothly with mouse mouse-wheel-scroll-amount '(2 ((shift) . 1) ((control))) ;; Indent two spaces standard-indent 2 ;; Use which-key for evil bindings which-key-allow-evil-operators t ;; Backup ;; delete excess backup versions silently delete-old-versions t ;; make backup files make-backup-files t ;; Use version control on backups version-control t ;; don't make backups file when in version controlled dir vc-make-backup-files nil ;; which directory to put backups file backup-directory-alist `(("." . "~/.emacs.d/backups")) ;; don't ask for confirmation when opening symlinked file vc-follow-symlinks t ;; Autosave ;; Enable auto-save-default t ;; Set interval and timeout auto-save-interval 300 auto-save-timeout 30 ;; Set directory for auto-saves auto-save-file-name-transforms '((".*" "~/.emacs.d/auto-save/" t)) ;; silent bell when you make a mistake ring-bell-function 'ignore coding-system-for-read 'utf-8 ; use utf-8 by default coding-system-for-write 'utf-8 ;; Identity user-full-name "Maxime Wack" user-mail-address "maximewack@free.fr" ;; No size limit to output in elisp mode eval-expression-print-length nil ;; GC and file size limits gc-cons-threshold 50000000 large-file-warning-threshold 100000000 ;; Disable splash screen inhibit-startup-screen t inhibit-startup-message t inhibit-startup-echo-area-message t ;; Filename in title frame-title-format '((:eval (if (buffer-file-name) (abbreviate-file-name (buffer-file-name)) "%b"))) scroll-margin 10 scroll-conservatively 100000 scroll-preserve-screen-position 1 hscroll-margin 10 hscroll-step 1 maximum-scroll-margin 0.5 ) (if (string-equal (system-name) "hegp") (setq url-proxy-services '(("no_proxy" . "127.0.0.1") ("http" . "proxym-inter.aphp.fr:8080") ("https" . "proxym-inter.aphp.fr:8080"))) ()) ;; Show empty lines at the end of the buffer (setq-default indicate-empty-lines t ;; Spaces for indent tab-width 2 ;; Show absolute line numbers is narrowed state display-line-numbers-widen t indent-tabs-mode nil) ;; Highlight current line (global-hl-line-mode t) ;; Visual line mode (word wrap at edge) (global-visual-line-mode t) ;; Show line numbers (global-display-line-numbers-mode t) ;; Font (set-frame-font "Fira Code 10" nil t) ;; Prefer UTF-8 (prefer-coding-system 'utf-8) (set-default-coding-systems 'utf-8) (set-terminal-coding-system 'utf-8) (set-keyboard-coding-system 'utf-8) ;; Disable toolbar crap (menu-bar-mode -1) (tool-bar-mode -1) (scroll-bar-mode -1) (blink-cursor-mode -1) ;; Replace yes/no with y/n (fset 'yes-or-no-p 'y-or-n-p) ;; Reload externally modified files (global-auto-revert-mode t) ;; Don't display tool-tips (tooltip-mode nil)