2017-06-29 32 views
0

我已經安裝了新的Debian 9 Stretch和Emacs GNU Emacs 24.5.1,當我嘗試從github(原始模式)將docker-compose.yml粘貼到emacs文件中時,有或沒有擴展(YML,CONF,等...),沒有自動縮進,這是我所:Emacs在Debian 9上壞的自動縮進

enter image description here

還有就是我.emacs文件

(setq-default indent-tabs-mode nil) 
(setq-default tab-width 4) 
(setq c-basic-offset 4) 

(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. 
'(tab-stop-list (quote (4 8 12 16 20 24 28 32 36 40 44 48 52 56 60 64 68 72 76 80 84 88 92 96 100 104 108 112 116 120)))) 

,這是鏈接到文件https://raw.githubusercontent.com/plexinc/pms-docker/master/docker-compose-bridge.yml.template

回答

0

爲德魯對他的回答說:https://emacs.stackexchange.com/a/5941

禁用electric-indent-mode

(when (fboundp 'electric-indent-mode) (electric-indent-mode -1))這 作品與任何Emacs的版本。根據你的觀點,這個煩人的或有光澤的新功能 被引入作爲默認的 Emacs 24.4。