diff options
author | Case Duckworth | 2022-05-09 20:37:17 -0500 |
---|---|---|
committer | Case Duckworth | 2022-05-09 20:37:17 -0500 |
commit | 4c4dd0e7824d4bf634923de19e14bbb9274c9408 (patch) | |
tree | 0928862fe65aa99249acf42c2168160a18088a21 /lisp/+init.el | |
parent | meh (diff) | |
parent | Further modeline changes (diff) | |
download | emacs-4c4dd0e7824d4bf634923de19e14bbb9274c9408.tar.gz emacs-4c4dd0e7824d4bf634923de19e14bbb9274c9408.zip |
Merged
Diffstat (limited to 'lisp/+init.el')
-rw-r--r-- | lisp/+init.el | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lisp/+init.el b/lisp/+init.el index 8f999f9..a3f680b 100644 --- a/lisp/+init.el +++ b/lisp/+init.el | |||
@@ -72,11 +72,10 @@ are sorted lexigraphically." | |||
72 | ;; otherwise, sort lexigraphically | 72 | ;; otherwise, sort lexigraphically |
73 | (t (string< s1 s2))))))))) | 73 | (t (string< s1 s2))))))))) |
74 | ;; Return to original point relative to the defun we were in | 74 | ;; Return to original point relative to the defun we were in |
75 | (goto-char (point-min)) | 75 | (ignore-errors (goto-char (point-min)) |
76 | (re-search-forward current-defun-re) | 76 | (re-search-forward current-defun-re) |
77 | (beginning-of-defun) | 77 | (beginning-of-defun) |
78 | (goto-char (+ (point) defun-point)) | 78 | (goto-char (+ (point) defun-point))))) |
79 | )) | ||
80 | 79 | ||
81 | (defun +init-sort-then-save () | 80 | (defun +init-sort-then-save () |
82 | "Sort init.el, then save it." | 81 | "Sort init.el, then save it." |