aboutsummaryrefslogtreecommitdiff
path: root/home/.emacs.d/init.el
diff options
context:
space:
mode:
authorJakob Odersky <jakob@odersky.com>2017-05-14 19:00:11 -0700
committerJakob Odersky <jakob@odersky.com>2017-05-14 19:00:11 -0700
commit0cf98cdcfb6b3ae70fa2ffa8b1593b97cb1edec3 (patch)
tree9f881a32052fb9f0d6904e6a1d2b7be10e110012 /home/.emacs.d/init.el
parent402aa8879c1183519b3ccc836345b3b0e10e6134 (diff)
downloaddotfiles-0cf98cdcfb6b3ae70fa2ffa8b1593b97cb1edec3.tar.gz
dotfiles-0cf98cdcfb6b3ae70fa2ffa8b1593b97cb1edec3.tar.bz2
dotfiles-0cf98cdcfb6b3ae70fa2ffa8b1593b97cb1edec3.zip
Simplify scala config and change theme
Diffstat (limited to 'home/.emacs.d/init.el')
-rw-r--r--home/.emacs.d/init.el27
1 files changed, 12 insertions, 15 deletions
diff --git a/home/.emacs.d/init.el b/home/.emacs.d/init.el
index 4bee0ff..434cd8e 100644
--- a/home/.emacs.d/init.el
+++ b/home/.emacs.d/init.el
@@ -19,7 +19,7 @@
;; font
; value is in 1/10pt, so 100 will give you 10pt, etc.
-(set-face-attribute 'default nil :height 100)
+(set-face-attribute 'default nil :height 120)
;; simplify questions
(defalias 'yes-or-no-p 'y-or-n-p)
@@ -41,6 +41,9 @@
(setq custom-file (expand-file-name "custom.el" user-emacs-directory))
(load custom-file 'noerror)
+;; don't send emacs to background
+(global-unset-key (kbd "C-z"))
+
;;(setq initial-buffer-choice "~/readme.org")
(defun show-file-name ()
@@ -174,9 +177,9 @@
:bind ("C-<tab>" . yas-expand))
(use-package yatemplate
- :defer 2 ;; WORKAROUND https://github.com/mineo/yatemplate/issues/3
:config
(auto-insert-mode t)
+ (setq auto-insert-query nil)
(setq auto-insert-alist nil)
(yatemplate-fill-alist))
@@ -199,20 +202,12 @@
:pin melpa
:interpreter ("scala" . scala-mode)
:config
- (require 'ensime-expand-region)
(add-hook 'scala-mode-hook
(lambda ()
(setq prettify-symbols-alist scala-mode-prettify-symbols)
(prettify-symbols-mode t)
- (local-set-key (kbd "RET")
- '(lambda ()
- (interactive)
- (newline-and-indent)
- (scala-indent:insert-asterisk-on-multiline-comment)))
(setq fill-column 80)
- (ensime-mode)))
- :bind (:map scala-mode-map
- ("<backtab>" . scala-indent:indent-with-reluctant-strategy)))
+ (ensime-mode))))
;; ENhanced Scala Interaction Mode for text Editors
(use-package ensime
@@ -220,6 +215,7 @@
:commands ensime ensime-mode
:init
:config
+ (require 'ensime-expand-region)
(setq ensime-startup-notification nil
ensime-startup-snapshot-notification nil))
@@ -241,7 +237,7 @@ assuming it is in a maven-style project."
(string-remove-prefix
(expand-file-name (concat root "/" kind "/"))
default-directory))
-nil 'literal))))
+ nil 'literal))))
;; Java
(add-hook 'java-mode-hook (lambda ()
@@ -268,7 +264,8 @@ nil 'literal))))
(use-package dockerfile-mode
:mode "\\Dockerfile\\'")
-;;(use-package idea-darkula-theme)
+(use-package idea-darkula-theme)
;;(use-package intellij-theme)
-;;(load-theme 'idea-darkula)
-(load-theme 'solarized-light)
+(use-package solarized-theme)
+(load-theme 'idea-darkula)
+;;(load-theme 'solarized-light)