Skip to content

Instantly share code, notes, and snippets.

@wactbprot
Last active December 22, 2021 14:48
Show Gist options
  • Save wactbprot/5b878de8a5f565a90969b203671f55ff to your computer and use it in GitHub Desktop.
Save wactbprot/5b878de8a5f565a90969b203671f55ff to your computer and use it in GitHub Desktop.
.emacs
(setq make-backup-files nil)
(global-set-key [S-dead-grave] "`")
(setq ring-bell-function 'ignore)
(setq visible-bell nil)
(setq ispell-dictionary "british")
(set-language-environment "UTF-8")
(require 'package)
(add-to-list 'package-archives
;'("melpa-stable" . "http://stable.melpa.org/packages/")
'("melpa" . "http://melpa.milkbox.net/packages/") t)
(package-initialize)
(require 'rainbow-delimiters)
(add-hook 'prog-mode-hook 'rainbow-delimiters-mode)
(load-theme 'gruvbox t)
(show-paren-mode 1)
;; http://stackoverflow.com/questions/9423974/emacs-menu-bar-mode-and-tool-bar-mode-automatically-set-to-t
(tool-bar-mode -1)
(menu-bar-mode -1)
(scroll-bar-mode -1)
;;disable splash screen and startup message
(setq inhibit-startup-message t)
(setq initial-scratch-message nil)
;; http://emacsblog.org/2007/01/17/indent-whole-buffer/
(defun iwb ()
"indent whole buffer"
(interactive)
(delete-trailing-whitespace)
(indent-region (point-min) (point-max) nil)
(untabify (point-min) (point-max)))
(global-set-key [M-left] 'windmove-left)
(global-set-key [M-right] 'windmove-right)
(global-set-key [M-up] 'windmove-up)
(global-set-key [M-down] 'windmove-down)
(add-hook 'emacs-startup-hook 'treemacs)
(global-prettify-symbols-mode 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment