Use spaces for indentation in Ada
This commit is contained in:
parent
c06a239c0e
commit
ec01cac05e
20
config.org
20
config.org
@ -999,16 +999,6 @@
|
||||
(setq ada-indent 4)
|
||||
#+end_src
|
||||
|
||||
Ada is definitely a tabs language, if you ask me, so we want to
|
||||
enable smart tabs. Since it's not supported out-of-the-box, Ada
|
||||
support must be added:
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
(smart-tabs-add-language-support ada ada-mode-hook
|
||||
((ada-indent-current-function . ada-indent)
|
||||
(ada-indent-region . ada-indent)))
|
||||
#+end_src
|
||||
|
||||
*** GPRBuild files
|
||||
GPRBuild files are pretty straightforward, but there doesn't seem
|
||||
to be a major mode on ELPA for them so going to make a basic one.
|
||||
@ -1120,16 +1110,6 @@
|
||||
(add-to-list 'auto-mode-alist '("\\.gpr\\'" . gpr-mode))
|
||||
#+end_src
|
||||
|
||||
**** Extra tweaks
|
||||
Want to use tabs for indentation so adding a hook for that:
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
(add-hook 'gpr-mode-hook
|
||||
(lambda ()
|
||||
(setq tab-width gpr-indent-width)
|
||||
(setq indent-tabs-mode t)))
|
||||
#+end_src
|
||||
|
||||
* Tool Integrations
|
||||
** Git
|
||||
=magit= is truly a wonderful creation! Add keybinding for
|
||||
|
Loading…
x
Reference in New Issue
Block a user