瀏覽代碼

Add hungry-delete

master
10sr 3 年之前
父節點
當前提交
1c5ff301d6
簽署人: 10sr GPG Key ID: 7BEC428194130EB2
共有 2 個文件被更改,包括 10 次插入0 次删除
  1. +5
    -0
      .editorconfig
  2. +5
    -0
      emacs.el

+ 5
- 0
.editorconfig 查看文件

@@ -43,3 +43,8 @@ charset = utf-16be

[latin1*.txt]
charset = latin1

[tabindent.js]
indent_style = tab
indent_size = 5
tab_width = 5

+ 5
- 0
emacs.el 查看文件

@@ -432,6 +432,11 @@ Otherwize hook it."
;; C-h and DEL
(global-set-key (kbd "C-h") (kbd "DEL"))
;; (normal-erase-is-backspace-mode 1)
;; M-SPC fixup-whitespace]
(when (fboundp 'global-hungry-delete-mode)
(set-variable 'hungry-delete-join-reluctantly t)
(add-hook 'after-first-visit-hook
'global-hungry-delete-mode))

;;(global-set-key (kbd "C-m") 'reindent-then-newline-and-indent)
(global-set-key (kbd "C-m") 'newline-and-indent)


Loading…
取消
儲存