Skip to content

Instantly share code, notes, and snippets.

@benj02
Last active August 29, 2015 14:22
Show Gist options
  • Select an option

  • Save benj02/bbdf7dab59e2cdeecad5 to your computer and use it in GitHub Desktop.

Select an option

Save benj02/bbdf7dab59e2cdeecad5 to your computer and use it in GitHub Desktop.
emacs init.el
(require 'package)
;;(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages"))
(add-to-list 'package-archives '("marmalade" . "https://marmalade-repo.org/packages/"))
(defvar my-packages '(better-defaults smex monokai-theme yasnippet))
(package-initialize)
(dolist (p my-packages)
(when (not (package-installed-p p))
(package-install p)))
;; Get smex set up
(require 'smex)
(smex-initialize)
(global-set-key (kbd "M-x") 'smex)
(global-set-key (kbd "M-X") 'smex-major-mode-commmands)
;; Get yas set up
(require 'yasnippet)
(setq yas-snippet-dirs '("~/.emacs.d/snippets" "~/.emacs.d/my-snippets"))
(yas-global-mode 1)
;; Some more stuff
(setq inhibit-startup-message t
color-theme-is-global t
uniqify-buffer-name-style 'forward)
;; Move windows with S-<arrow key>
(windmove-default-keybindings)
;; Smaller font
(set-face-attribute 'default nil :height 100)
;; Set window size
(add-to-list 'default-frame-alist '(height . 60))
(add-to-list 'default-frame-alist '(width . 175))
(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.
'(ansi-color-faces-vector
[default default default italic underline success warning error])
'(ansi-color-names-vector
["#212526" "#ff4b4b" "#b4fa70" "#fce94f" "#729fcf" "#e090d7" "#8cc4ff" "#eeeeec"])
'(custom-enabled-themes (quote (monokai)))
'(custom-safe-themes
(quote
("9a9e75c15d4017c81a2fe7f83af304ff52acfadd7dde3cb57595919ef2e8d736" default))))
(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.
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment