Skip to content

Instantly share code, notes, and snippets.

@dotemacs
Created September 28, 2016 05:51
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 dotemacs/f330e2dd3e02b834279571a303b2e70d to your computer and use it in GitHub Desktop.
Save dotemacs/f330e2dd3e02b834279571a303b2e70d to your computer and use it in GitHub Desktop.
(require 'package)
(setq package-enable-at-startup nil)
(dolist (archive '(("melpa-stable" . "http://stable.melpa.org/packages/")
("melpa" . "http://melpa.org/packages/")))
(add-to-list 'package-archives archive :append))
(package-initialize)
(unless (package-installed-p 'use-package)
(package-refresh-contents)
(package-install 'use-package))
(use-package java-mode
:commands java-mode
:init
(add-hook 'java-mode-hook #'subword-mode))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment