swaggboi

emacs-dotfile11252020

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