From 1c5ff301d6c0e7cc8d706048193317b19db586b3 Mon Sep 17 00:00:00 2001 From: 10sr <8.slashes@gmail.com> Date: Wed, 24 Feb 2021 14:06:36 +0900 Subject: [PATCH] Add hungry-delete --- .editorconfig | 5 +++++ emacs.el | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/.editorconfig b/.editorconfig index c0a2752..4b9fbf7 100644 --- a/.editorconfig +++ b/.editorconfig @@ -43,3 +43,8 @@ charset = utf-16be [latin1*.txt] charset = latin1 + +[tabindent.js] +indent_style = tab +indent_size = 5 +tab_width = 5 diff --git a/emacs.el b/emacs.el index 8f9bd65..e81b1c2 100644 --- a/emacs.el +++ b/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)