Advertisement
swaggboi

emacs-dotfile-05202020

May 20th, 2020
2,427
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 1.90 KB | None | 0 0
  1. ;; emacs dotfile
  2. ;; Daniel Bowling <dbowling@akamai>
  3. ;; May 2020
  4. ;; version 0.1
  5.  
  6. ;; Added by Package.el.  This must come before configurations of
  7. ;; installed packages.  Don't delete this line.  If you don't want it,
  8. ;; just comment it out by adding a semicolon to the start of the line.
  9. ;; You may delete these explanatory comments.
  10. (package-initialize)
  11.  
  12. (custom-set-variables
  13.  ;; custom-set-variables 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.  '(custom-enabled-themes (quote (tango-dark))))
  18. (custom-set-faces
  19.  ;; custom-set-faces was added by Custom.
  20.  ;; If you edit it by hand, you could mess it up, so be careful.
  21.  ;; Your init file should contain only one such instance.
  22.  ;; If there is more than one, they won't work right.
  23.  )
  24.  
  25. ;; Don't blink cursor
  26. (blink-cursor-mode (- (*) (*) (*)))
  27. (setq visible-cursor nil)
  28.  
  29. ;; Use spaces for indent
  30. (setq-default indent-tabs-mode nil)
  31.  
  32. ;; Put backup files in one place
  33. (setq backup-directory-alist '(("." . "~/.emacs.d")))
  34.  
  35. ;; Put auto-save files in one place
  36. (setq auto-save-file-name-transforms '((".*" "~/.emacs.d/" t)))
  37.  
  38. ;; Show column number next to line number
  39. (setq column-number-mode t)
  40.  
  41. ;; Make next line command skip wrapped lines
  42. (setq line-move-visual nil)
  43.  
  44. ;; Load package system
  45. (when (>= emacs-major-version 24)
  46.   (require 'package)
  47.   (add-to-list
  48.    'package-archives
  49.    '("melpa-stable" . "http://stable.melpa.org/packages/") t)
  50. ;  (add-to-list
  51. ;   'package-archives
  52. ;   '("melpa" . "http://melpa.milkbox.net/packages/") t)
  53.   )
  54.  
  55. ;; If running in a GUI...
  56. (if window-system
  57.     (progn
  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