Created
September 28, 2016 05:51
-
-
Save dotemacs/f330e2dd3e02b834279571a303b2e70d to your computer and use it in GitHub Desktop.
Sample init.el for this Reddit discussion https://www.reddit.com/r/emacs/comments/54pvg4/usepackage_with_builtin_modes/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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