Advertisement
swaggboi

emacsDotfile12142021

Dec 14th, 2021 (edited)
2,754
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 2.09 KB | None | 0 0
  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 '(tango-dark))
  12.  '(package-selected-packages
  13.    '(kotlin-mode markdown-mode elpher yaml-mode raku-mode emojify)))
  14. (custom-set-faces
  15.  ;; custom-set-faces was added by Custom.
  16.  ;; If you edit it by hand, you could mess it up, so be careful.
  17.  ;; Your init file should contain only one such instance.
  18.  ;; If there is more than one, they won't work right.
  19.  )
  20.  
  21. ;; Don't blink cursor
  22. (blink-cursor-mode (- (*) (*) (*)))
  23. (setq visible-cursor nil)
  24.  
  25. ;; Use spaces for indent
  26. (setq-default indent-tabs-mode nil)
  27.  
  28. ;; Put backup files in one place
  29. (setq backup-directory-alist '(("." . "~/.emacs.d")))
  30.  
  31. ;; Put auto-save files in one place
  32. (setq auto-save-file-name-transforms '((".*" "~/.emacs.d/" t)))
  33.  
  34. ;; Show column number next to line number
  35. (setq column-number-mode t)
  36.  
  37. ;; Make next line command skip wrapped lines
  38. (setq line-move-visual nil)
  39.  
  40. ;; Highlight matching brackets when under cursor
  41. (show-paren-mode 1)
  42.  
  43. ;; Highlight brackets if visible; else entire expression
  44. (setq show-paren-style 'mixed)
  45.  
  46. ;; Load package system
  47. (when (>= emacs-major-version 24)
  48.   (package-initialize)
  49.   (require 'package)
  50.   (add-to-list
  51.    'package-archives
  52.    '("melpa-stable" . "http://stable.melpa.org/packages/") t)
  53.   (add-to-list
  54.    'package-archives
  55.    '("melpa" . "https://melpa.org/packages/") t)
  56.   )
  57.  
  58. ;; GUI specific config
  59. (when window-system
  60.   ;; Confirm before exit
  61.   (setq confirm-kill-emacs 'yes-or-no-p)
  62.   ;; For small screens (uncomment as needed)
  63. ;  (set-frame-height (selected-frame) 36)
  64.   )
  65.  
  66. ;; MacOS specific config
  67. (when (eq system-type 'darwin)
  68. ;; Need this fix for homebrew
  69.   (setq ispell-program-name "/usr/local/bin/ispell")
  70.   ;; Work-around for dir not getting set correctly on macOS
  71.   (cd (getenv "HOME"))
  72.   )
  73.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement