File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed
Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -46,13 +46,15 @@ indentation level. The default value is `2`.
4646
4747### Make indentation work across all modes
4848
49- Is easy to make indentation level inherit last time modified in Emacs.
50- Just call ` indent-control-continue-with-record ` function whenever
51- you want to inherit the indentation level. This function is already get called
52- in ` prog-mode-hook ` , but with some major modes that they don't use inherit
53- ` prog-mode ` will not work! You would have to manually called it in each mode's
54- startup hook. For instance ` actionscript-mode ` doesn't inherit ` prog-mode `
55- so you would have to do the following.
49+ Is easy to make indentation level inherit last time modified in Emacs.
50+ Just enable the global minor mode ` indent-control-mode ` then it will
51+ automatically records all changes from the indentation level.
52+
53+ This minor mode is already get called in ` prog-mode-hook ` , but with some
54+ major modes that they do not use inherit ` prog-mode ` will not work!
55+ You would have to manually called it in each mode's startup hook.
56+ For instance ` actionscript-mode ` doesn't inherit ` prog-mode ` so you would
57+ have to do the following.
5658
5759``` el
5860(defun my-actionscript-mode-hook ()
You can’t perform that action at this time.
0 commit comments