Skip to content

Instantly share code, notes, and snippets.

@davidrusu
Created November 12, 2015 22:48

Revisions

  1. davidrusu created this gist Nov 12, 2015.
    49 changes: 49 additions & 0 deletions .emacs
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,49 @@

    (require 'package)

    (add-to-list 'package-archives
    '("melpa" . "https://melpa.org/packages/"))

    (package-initialize) ;; You might already have this line


    (require 'multiple-cursors)
    (global-set-key (kbd "C-S-c C-S-c") 'mc/edit-lines)
    (global-set-key (kbd "C->") 'mc/mark-next-like-this)
    (global-set-key (kbd "C-<") 'mc/mark-previous-like-this)
    (global-set-key (kbd "C-c C-<") 'mc/mark-all-like-this)


    (blink-cursor-mode 0)
    (setq initial-scratch-message "")
    (setq inhibit-startup-message t)
    (setq visible-bell t)
    (setq inhibit-startup-echo-area-message "guerry")
    (setq make-backup-files nil)
    (scroll-bar-mode 0)

    (tool-bar-mode 0)

    (global-linum-mode 1)

    (add-hook 'haskell-mode-hook 'haskell-indentation-mode)
    (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-names-vector
    ["#242424" "#e5786d" "#95e454" "#cae682" "#8ac6f2" "#333366" "#ccaa8f" "#f6f3e8"])
    '(custom-enabled-themes (quote (adwaita)))
    '(js2-basic-offset 2))
    (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.
    )
    (setq auto-save-default nil)

    (add-to-list 'auto-mode-alist '("\\.js[x]?\\'" . js2-mode))

    (setq js-indent-level 2)