Skip to content

Instantly share code, notes, and snippets.

@lvm
Created September 8, 2020 11:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lvm/4171d7b2949189baae498b88dab8db93 to your computer and use it in GitHub Desktop.
Save lvm/4171d7b2949189baae498b88dab8db93 to your computer and use it in GitHub Desktop.
;; mkdir -p $HOME/.emacs.d/themes \
;; && mkdir -p $HOME/.emacs.d/lisp \
;; && wget https://raw.githubusercontent.com/lvm/monochrome-theme.el/master/monochrome-transparent-theme.el -O $HOME/.emacs.d/themes/monochrome-transparent-theme.el
(require 'package)
(custom-set-variables
'(package-archives
(quote
(("gnu" . "http://elpa.gnu.org/packages/")
("melpa-stable" . "http://stable.melpa.org/packages/")))))
(add-to-list 'load-path "~/.elisp")
(add-to-list 'load-path "~/.emacs.d/lisp/")
(add-to-list 'custom-theme-load-path "~/.emacs.d/themes/")
(setq inhibit-splash-screen t)
(setq inhibit-startup-message t)
(fset 'yes-or-no-p 'y-or-n-p)
(defconst query-replace-highlight t)
(defconst search-highlight t)
(setq ecb-tip-of-the-day nil)
(global-set-key (kbd "M-<down>") 'shrink-window)
(global-set-key (kbd "M-<up>") 'enlarge-window)
(global-set-key "\M-g" 'goto-line)
(global-set-key "\M-r" ;; reload .emacs
'(lambda () (interactive) (load-file "~/.emacs")))
(setq-default line-number-mode t)
(setq-default column-number-mode t)
(display-time)
(set-terminal-coding-system 'utf-8)
(set-keyboard-coding-system 'utf-8)
(prefer-coding-system 'utf-8)
(setq make-backup-files nil)
(setq version-control 'never)
(setq transient-mark-mode t)
(setq visible-bell t)
(setq scroll-step 1)
(setq truncate-partial-width-windows nil)
(menu-bar-mode -99) ;; no-x requires -99, x works with just -1
;;(global-hl-line-mode 1)
(add-hook 'isearch-update-post-hook 'redraw-display)
(add-hook 'after-init-hook
(lambda ()
(load-theme 'monochrome-transparent t)
(kill-buffer "*scratch*")
))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment