Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;; emacs dotfile
- ;; Daniel Bowling <dbowling@akamai>
- ;; May 2020
- ;; version 0.3
- (custom-set-variables
- ;; custom-set-variables was added by Custom.
- ;; If you edit it by hand, you could mess it up, so be careful.
- ;; Your init file should contain only one such instance.
- ;; If there is more than one, they won't work right.
- '(custom-enabled-themes '(tango-dark))
- '(package-selected-packages
- '(kotlin-mode markdown-mode elpher yaml-mode raku-mode emojify)))
- (custom-set-faces
- ;; custom-set-faces was added by Custom.
- ;; If you edit it by hand, you could mess it up, so be careful.
- ;; Your init file should contain only one such instance.
- ;; If there is more than one, they won't work right.
- )
- ;; Don't blink cursor
- (blink-cursor-mode (- (*) (*) (*)))
- (setq visible-cursor nil)
- ;; Use spaces for indent
- (setq-default indent-tabs-mode nil)
- ;; Put backup files in one place
- (setq backup-directory-alist '(("." . "~/.emacs.d")))
- ;; Put auto-save files in one place
- (setq auto-save-file-name-transforms '((".*" "~/.emacs.d/" t)))
- ;; Show column number next to line number
- (setq column-number-mode t)
- ;; Make next line command skip wrapped lines
- (setq line-move-visual nil)
- ;; Highlight matching brackets when under cursor
- (show-paren-mode 1)
- ;; Highlight brackets if visible; else entire expression
- (setq show-paren-style 'mixed)
- ;; Load package system
- (when (>= emacs-major-version 24)
- (package-initialize)
- (require 'package)
- (add-to-list
- 'package-archives
- '("melpa-stable" . "http://stable.melpa.org/packages/") t)
- (add-to-list
- 'package-archives
- '("melpa" . "https://melpa.org/packages/") t)
- )
- ;; GUI specific config
- (when window-system
- ;; Confirm before exit
- (setq confirm-kill-emacs 'yes-or-no-p)
- ;; For small screens (uncomment as needed)
- ; (set-frame-height (selected-frame) 36)
- )
- ;; MacOS specific config
- (when (eq system-type 'darwin)
- ;; Need this fix for homebrew
- (setq ispell-program-name "/usr/local/bin/ispell")
- ;; Work-around for dir not getting set correctly on macOS
- (cd (getenv "HOME"))
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement