Created
July 2, 2019 21:38
-
-
Save rdasxy/92adf4472bfa5c27703ca13bd50daba9 to your computer and use it in GitHub Desktop.
Bare Bones Emacs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; disable auto-save, auto-backup and interlock | |
(setq auto-save-default nil) | |
(setq make-backup-files nil) | |
(setq create-lockfiles nil) | |
; automatically reload files was modified by external program | |
(global-auto-revert-mode 1) | |
; show matching parens | |
(show-paren-mode 1) | |
; global subword mode | |
(global-subword-mode 1) | |
; instead of ctrl+j | |
(global-set-key (kbd "RET") 'newline-and-indent) | |
; y or n is always enough | |
(defalias 'yes-or-no-p 'y-or-n-p) | |
; set tab spaces instead of tabs | |
(setq-default indent-tabs-mode nil) | |
; set tab width | |
(setq tab-width 4) | |
(setq c-basic-offset 4) | |
(setq tab-width 8 indent-tabs-mode nil) | |
; remove trailing whitespace from the entire buffer | |
(add-hook 'before-save-hook 'delete-trailing-whitespace) | |
; highlight current line | |
(global-hl-line-mode t) | |
(set-face-background 'hl-line "#ffaa88") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment