emacs中糟糕的java内部类和lambdas缩进

时间:2016-06-13 11:08:19

标签: java emacs lambda

匿名内部类和lambdas由于某种原因缩进了... 这就是它的样子

new Thread(new Runnable() {

    });

标签关闭为什么?和lambdas一样。

这是我的.emacs文件:

;; fix tabs
(setq-default c-basic-offset 4
              tab-width 4
              indent-tabs-mode t)

;; don't show the splash screen
(setq inhibit-splash-screen t)

;; auto close bracket insertion
(electric-pair-mode 1)

;; enable line numbers
(global-linum-mode t)

;; Remove Toolbar
(tool-bar-mode -1)

;; Add melpa to package list
(require 'package)
(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/"))
(package-initialize)

;; Start autocomplete
(require 'auto-complete)
(require 'auto-complete-config)
(ac-config-default)

;; Start yasnipper
(require 'yasnippet)
(yas-global-mode 1)

;; Load seti theme
(load-theme 'seti t)

;; change font
(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.
 '(tool-bar-mode nil))
(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.
 '(default ((t (:family "Monaco" :foundry "APPL" :slant normal :weight normal :height 98 :width normal)))))

;; enable line numbers
(global-linum-mode 1)

;; set clipboard to copy
(setq x-select-enable-clipboard t)

0 个答案:

没有答案
相关问题