You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

118 lines
3.1KB

  1. (setq
  2. ;; Set tramp terminal type
  3. tramp-terminal-type "tramp"
  4. ;; Mode-line
  5. ;; Mnemonics for eol
  6. eol-mnemonic-unix "(Unix)"
  7. ;; Display total size of buffer and column index
  8. size-indication-mode t
  9. ;; Column numbers from 1
  10. column-number-indicator-zero-based nil
  11. ;; Line numbers
  12. column-number-mode t
  13. ;; No limit to line number displayed
  14. line-number-display-limit nil
  15. ;; Scroll smoothly with mouse
  16. mouse-wheel-scroll-amount '(2 ((shift) . 1) ((control)))
  17. ;; Indent two spaces
  18. standard-indent 2
  19. ;; Use which-key for evil bindings
  20. which-key-allow-evil-operators t
  21. ;; Backup
  22. ;; delete excess backup versions silently
  23. delete-old-versions t
  24. ;; make backup files
  25. make-backup-files t
  26. ;; Use version control on backups
  27. version-control t
  28. ;; don't make backups file when in version controlled dir
  29. vc-make-backup-files nil
  30. ;; which directory to put backups file
  31. backup-directory-alist `(("." . "~/.emacs.d/backups"))
  32. ;; don't ask for confirmation when opening symlinked file
  33. vc-follow-symlinks t
  34. ;; Autosave
  35. ;; Enable
  36. auto-save-default t
  37. ;; Set interval and timeout
  38. auto-save-interval 300
  39. auto-save-timeout 30
  40. ;; Set directory for auto-saves
  41. auto-save-file-name-transforms '((".*" "~/.emacs.d/auto-save/" t))
  42. ;; silent bell when you make a mistake
  43. ring-bell-function 'ignore
  44. coding-system-for-read 'utf-8 ; use utf-8 by default
  45. coding-system-for-write 'utf-8
  46. ;; Identity
  47. user-full-name "Maxime Wack"
  48. user-mail-address "maximewack@free.fr"
  49. ;; No size limit to output in elisp mode
  50. eval-expression-print-length nil
  51. ;; GC and file size limits
  52. gc-cons-threshold 50000000
  53. large-file-warning-threshold 100000000
  54. ;; Disable splash screen
  55. inhibit-startup-screen t
  56. inhibit-startup-message t
  57. inhibit-startup-echo-area-message t
  58. ;; Filename in title
  59. frame-title-format
  60. '((:eval (if (buffer-file-name)
  61. (abbreviate-file-name (buffer-file-name))
  62. "%b")))
  63. scroll-margin 10
  64. scroll-conservatively 100000
  65. scroll-preserve-screen-position 1
  66. hscroll-margin 10
  67. hscroll-step 1
  68. maximum-scroll-margin 0.5
  69. )
  70. (if (string-equal (system-name) "hegp")
  71. (setq url-proxy-services '(("no_proxy" . "127.0.0.1")
  72. ("http" . "proxym-inter.aphp.fr:8080")
  73. ("https" . "proxym-inter.aphp.fr:8080")))
  74. ())
  75. ;; Show empty lines at the end of the buffer
  76. (setq-default
  77. indicate-empty-lines t
  78. ;; Spaces for indent
  79. tab-width 2
  80. ;; Show absolute line numbers is narrowed state
  81. display-line-numbers-widen t
  82. indent-tabs-mode nil)
  83. ;; Highlight current line
  84. (global-hl-line-mode t)
  85. ;; Visual line mode (word wrap at edge)
  86. (global-visual-line-mode t)
  87. ;; Show line numbers
  88. (global-display-line-numbers-mode t)
  89. ;; Font
  90. (set-frame-font "Fira Code 10" nil t)
  91. ;; Prefer UTF-8
  92. (prefer-coding-system 'utf-8)
  93. (set-default-coding-systems 'utf-8)
  94. (set-terminal-coding-system 'utf-8)
  95. (set-keyboard-coding-system 'utf-8)
  96. ;; Disable toolbar crap
  97. (menu-bar-mode -1)
  98. (tool-bar-mode -1)
  99. (scroll-bar-mode -1)
  100. (blink-cursor-mode -1)
  101. ;; Replace yes/no with y/n
  102. (fset 'yes-or-no-p 'y-or-n-p)
  103. ;; Reload externally modified files
  104. (global-auto-revert-mode t)
  105. ;; Don't display tool-tips
  106. (tooltip-mode nil)