From 32f946bc1eb6ad0f72ebc1f87e6d9323c0783e4d Mon Sep 17 00:00:00 2001 From: 10sr <8.slashes@gmail.com> Date: Tue, 20 Dec 2022 15:49:26 +0900 Subject: [PATCH] Update --- emacs.el | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/emacs.el b/emacs.el index ba52beb..9a42e62 100644 --- a/emacs.el +++ b/emacs.el @@ -2091,6 +2091,13 @@ ORIG-FUNC is the target function, and ARGS is the argument when it is called." (add-to-list 'interpreter-mode-alist '("node" . js-mode)) +(add-hook 'js-mode-hook + (lambda () + ;; Stop current line highlighting + (set-variable 'js-indent-level 2 t) + )) + + (add-hook 'haskell-mode-hook 'turn-on-haskell-indentation) (with-eval-after-load 'uniquify @@ -3014,6 +3021,16 @@ ARGS are not used." (require 'lsp-python-ms nil t)) (lsp))) +(set-variable 'awk-preview-default-program + "# C-c C-l: Update preview C-c C-c: Commit and exit +# C-c C-r: Resest to original C-c C-k: Abort +{ + # Replace string + # gsub(BEFORE, AFTER, $0) + print NR, $0 +} +") + (message "Emacs started at %s"