Debian 9上的Emacs错误自动缩进

Debian 9上的Emacs错误自动缩进,emacs,debian,indentation,auto-indent,Emacs,Debian,Indentation,Auto Indent,我安装了一个全新的Debian 9 Stretch和Emacs GNU Emacs 24.5.1,当我尝试将docker-compose.yml从github(原始模式)粘贴到一个带有或不带扩展名(yml、conf等)的Emacs文件时,没有自动缩进,这就是我所拥有的: 这是我的.emacs文件 (setq-default indent-tabs-mode nil) (setq-default tab-width 4) (setq c-basic-offset 4) (custom-set-

我安装了一个全新的Debian 9 Stretch和Emacs GNU Emacs 24.5.1,当我尝试将docker-compose.yml从github(原始模式)粘贴到一个带有或不带扩展名(yml、conf等)的Emacs文件时,没有自动缩进,这就是我所拥有的:

这是我的
.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))))

这是文件的链接,Drew在回答时说:

禁用电缩进模式:

(当(fboundp'电子缩进模式)(电子缩进模式-1))时
适用于任何Emacs版本。这个烦人的或闪亮的新功能,
根据您的观点,在中作为默认值引入
Emacs 24.4