aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Kummerlaender2021-06-20 22:39:55 +0200
committerAdrian Kummerlaender2021-06-20 22:39:55 +0200
commitd5667251788624c9fa92ece959565961b2598dc0 (patch)
treee20d21adf2a8824f9ee05d40352ee64d867fa024
parentf02da2274f013431a6428e05956fd80c33a12a9f (diff)
downloadnixos_home-d5667251788624c9fa92ece959565961b2598dc0.tar
nixos_home-d5667251788624c9fa92ece959565961b2598dc0.tar.gz
nixos_home-d5667251788624c9fa92ece959565961b2598dc0.tar.bz2
nixos_home-d5667251788624c9fa92ece959565961b2598dc0.tar.lz
nixos_home-d5667251788624c9fa92ece959565961b2598dc0.tar.xz
nixos_home-d5667251788624c9fa92ece959565961b2598dc0.tar.zst
nixos_home-d5667251788624c9fa92ece959565961b2598dc0.zip
Disable electric indent mode for C-languages
-rw-r--r--gui/conf/init.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/gui/conf/init.el b/gui/conf/init.el
index 46f2292..c0cc2f7 100644
--- a/gui/conf/init.el
+++ b/gui/conf/init.el
@@ -492,6 +492,9 @@
(add-hook 'c-mode-common-hook 'hs-minor-mode t)
(add-hook 'c-mode-common-hook 'hs-hide-initial-comment-block t)
+(defun disable-electric-indent-mode ()
+ (electric-indent-local-mode -1))
+(add-hook 'c-mode-common-hook 'disable-electric-indent-mode t)
(use-package ace-jump-mode
:ensure t