Skip to content

Commit f989728

Browse files
committed
emacs: add my/save-without-formatting
1 parent 07fc640 commit f989728

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

modules/home/emacs/default.nix

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,13 @@ in
108108
(setq confirm-kill-emacs 'y-or-n-p)
109109
110110
(global-set-key (kbd "C-S-d") #'duplicate-dwim)
111+
112+
(defun my/save-without-formatting ()
113+
(interactive)
114+
(let ((before-save-hook nil))
115+
(save-buffer)))
116+
117+
(global-set-key (kbd "C-x M-s") #'my/save-without-formatting)
111118
'';
112119

113120
usePackage = {

0 commit comments

Comments
 (0)