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.

Revisions

  1. benj02 revised this gist Jul 1, 2015. 1 changed file with 26 additions and 22 deletions.
    48 changes: 26 additions & 22 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1,57 +1,61 @@
    (require 'package)

    ;;(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages"))
    (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))

    (defvar my-packages '(better-defaults smex yasnippet ido-ubiquitous php-mode))
    (package-initialize)
    (dolist (p my-packages)
    (when (not (package-installed-p p))
    (package-install p)))

    ;; Add vendor stuff here


    ;; 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)

    ;; Ido
    (require 'ido-ubiquitous)
    (ido-mode 1)
    (ido-everywhere 1)
    (ido-ubiquitous 1)

    ;; 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)

    uniqify-buffer-name-style 'forward
    default-tab-width 4)

    ;; 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))

    (add-to-list 'default-frame-alist '(height . 40))
    (add-to-list 'default-frame-alist '(width . 150))
    (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))))
    '(ansi-color-names-vector ["#2e3436" "#a40000" "#4e9a06" "#c4a000" "#204a87" "#5c3566" "#729fcf" "#eeeeec"])
    '(custom-enabled-themes (quote (tango)))
    '(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.
    )
    )
  2. benj02 created this gist Jun 2, 2015.
    57 changes: 57 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,57 @@
    (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.
    )