Advertisement
swaggboi

emacs-dotfile-05292020

May 29th, 2020
2,316
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 1.77 KB | None | 0 0
  1. ;; emacs dotfile
  2. ;; Daniel Bowling <dbowling@akamai>
  3. ;; May 2020
  4. ;; version 0.2
  5.  
  6. (custom-set-variables
  7.  ;; custom-set-variables was added by Custom.
  8.  ;; If you edit it by hand, you could mess it up, so be careful.
  9.  ;; Your init file should contain only one such instance.
  10.  ;; If there is more than one, they won't work right.
  11.  '(custom-enabled-themes (quote (tango-dark))))
  12. (custom-set-faces
  13.  ;; custom-set-faces was added by Custom.
  14.  ;; If you edit it by hand, you could mess it up, so be careful.
  15.  ;; Your init file should contain only one such instance.
  16.  ;; If there is more than one, they won't work right.
  17.  )
  18.  
  19. ;; Don't blink cursor
  20. (blink-cursor-mode (- (*) (*) (*)))
  21. (setq visible-cursor nil)
  22.  
  23. ;; Use spaces for indent
  24. (setq-default indent-tabs-mode nil)
  25.  
  26. ;; Put backup files in one place
  27. (setq backup-directory-alist '(("." . "~/.emacs.d")))
  28.  
  29. ;; Put auto-save files in one place
  30. (setq auto-save-file-name-transforms '((".*" "~/.emacs.d/" t)))
  31.  
  32. ;; Show column number next to line number
  33. (setq column-number-mode t)
  34.  
  35. ;; Make next line command skip wrapped lines
  36. (setq line-move-visual nil)
  37.  
  38. ;; Highlight matching brackets when under cursor
  39. (show-paren-mode 1)
  40.  
  41. ;; Highlight brackets if visible; else entire expression
  42. (setq show-paren-style 'mixed)
  43.  
  44. ;; Load package system
  45. (when (>= emacs-major-version 24)
  46.   (package-initialize)
  47.   (require 'package)
  48.   (add-to-list
  49.    'package-archives
  50.    '("melpa-stable" . "http://stable.melpa.org/packages/") t)
  51. ;  (add-to-list
  52. ;   'package-archives
  53. ;   '("melpa" . "http://melpa.milkbox.net/packages/") t)
  54.   )
  55.  
  56. ;; GUI specific config
  57. (when window-system
  58.   ;; Confirm before exit
  59.   (setq confirm-kill-emacs 'yes-or-no-p)
  60.   ;; For small screens (uncomment as needed)
  61. ;  (set-frame-height (selected-frame) 36)
  62.   )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement