Browse Source

more restructuring

master
Marc 3 years ago
parent
commit
b7663505fc
1 changed files with 21 additions and 16 deletions
  1. 37
      config.org

37
config.org

@ -259,32 +259,37 @@ Restore it to reasonable value after init. Also stop garbage collection during m
(save-place-mode 1) ;; saves position in file when it's closed (save-place-mode 1) ;; saves position in file when it's closed
(setq save-place-forget-unreadable-files nil) ;; checks if file is readable before saving position (setq save-place-forget-unreadable-files nil) ;; checks if file is readable before saving position
#+END_SRC
* Appearance
** Defaults
#+begin_src emacs-lisp
(set-charset-priority 'unicode) (set-charset-priority 'unicode)
(setq locale-coding-system 'utf-8)
(setq-default locale-coding-system 'utf-8
default-process-coding-system '(utf-8-unix . utf-8-unix))
(set-terminal-coding-system 'utf-8) (set-terminal-coding-system 'utf-8)
(set-keyboard-coding-system 'utf-8) (set-keyboard-coding-system 'utf-8)
(set-selection-coding-system 'utf-8) (set-selection-coding-system 'utf-8)
(setq default-process-coding-system '(utf-8-unix . utf-8-unix))
(if *sys/windows* (if *sys/windows*
(prefer-coding-system 'utf-8-dos) (prefer-coding-system 'utf-8-dos)
(prefer-coding-system 'utf-8)) (prefer-coding-system 'utf-8))
(setq-default bidi-paragraph-direction 'left-to-right (setq-default bidi-paragraph-direction 'left-to-right
bidi-inhibit-bpa t) ;; both settings reduce line rescans
(blink-cursor-mode -1) ;; turn off blinking cursor
bidi-inhibit-bpa t ;; both settings reduce line rescans
uniquify-buffer-name-style 'forward
indent-tabs-mode nil ;; avoid tabs in place of multiple spaces (they look bad in tex)
indicate-empty-lines t ;; show empty lines
scroll-margin 5 ;; smooth scrolling
scroll-conservatively 10000
scroll-preserve-screen-position 1
scroll-step 1
ring-bell-function 'ignore ;; disable pc speaker bell
visible-bell t)
(global-hl-line-mode t) ;; highlight current line
(blink-cursor-mode -1) ;; turn off blinking cursor
(column-number-mode t) (column-number-mode t)
(setq uniquify-buffer-name-style 'forward)
(setq-default indent-tabs-mode nil) ;; avoid tabs in place of multiple spaces (they look bad in tex)
(setq-default indicate-empty-lines t) ;; show empty lines
(setq scroll-margin 5 ;; smooth scrolling
scroll-conservatively 10000
scroll-preserve-screen-position 1
scroll-step 1)
(global-hl-line-mode t) ;; highlight current line
(setq ring-bell-function 'ignore ;; disable pc speaker bell
visible-bell t)
#+END_SRC
#+end_src
* Remove redundant UI
** Remove redundant UI
#+begin_src emacs-lisp :tangle early-init.el #+begin_src emacs-lisp :tangle early-init.el
(menu-bar-mode -1) ;; disable menu bar (menu-bar-mode -1) ;; disable menu bar
(tool-bar-mode -1) ;; disable tool bar (tool-bar-mode -1) ;; disable tool bar

Loading…
Cancel
Save