aboutsummaryrefslogtreecommitdiffstats
path: root/emacs
diff options
context:
space:
mode:
authorYann Herklotz <git@yannherklotz.com>2019-09-15 18:45:15 +0200
committerYann Herklotz <git@yannherklotz.com>2019-09-15 18:45:15 +0200
commit703f1c92cd096ea5c81764034871fda93303869a (patch)
tree24f100052b15909b7fb8480580fd089ce3e88be5 /emacs
parent74257e4be560d2d8a35794576806fdfcba514e5c (diff)
downloaddotfiles-703f1c92cd096ea5c81764034871fda93303869a.tar.gz
dotfiles-703f1c92cd096ea5c81764034871fda93303869a.zip
More configuration for emacs
Diffstat (limited to 'emacs')
-rw-r--r--emacs/loader.org11
1 files changed, 8 insertions, 3 deletions
diff --git a/emacs/loader.org b/emacs/loader.org
index ac58a8e..31d891a 100644
--- a/emacs/loader.org
+++ b/emacs/loader.org
@@ -262,12 +262,13 @@ preferred style. This is just personal preference though.
(setq-default indent-tabs-mode nil)
(setq-default tab-width 4)
(setq tab-width 4)
- (defvaralias 'python-indent-offset 'tab-width)
- (defvaralias 'c-basic-offset 'tab-width)
+ (setq-default python-indent-offset 4)
+ (setq-default c-basic-offset 4)
+ (setq-default python-indent 4)
#+END_SRC
#+RESULTS:
-: tab-width
+: 4
Set the line number display very high so that it is always shown in the modeline.
#+BEGIN_SRC emacs-lisp
@@ -1148,6 +1149,7 @@ Elpy package for python, which provides an IDE type environment for python.
(elpy-enable)
(setq py-python-command "python3")
(setq python-shell-interpreter "python3"))
+ (setq tab-width 4)
(with-eval-after-load 'python
(defun python-shell-completion-native-try ()
@@ -1160,6 +1162,9 @@ Elpy package for python, which provides an IDE type environment for python.
nil "_"))))
#+END_SRC
+#+RESULTS:
+: python-shell-completion-native-try
+
*** JSON
JSON files should be opened in js-mode.
#+BEGIN_SRC emacs-lisp