Add OCaml support; C++ format update

This commit is contained in:
Stochastica 2021-02-21 12:11:26 -05:00
parent 0afd2858f2
commit 5d2d7bc030
2 changed files with 15 additions and 3 deletions

View File

@ -19,11 +19,12 @@ AlwaysBreakTemplateDeclarations: 'true'
BreakBeforeBinaryOperators: All
BreakBeforeBraces: Allman
BreakBeforeTernaryOperators: 'true'
BreakConstructorInitializers: BeforeComma
BreakConstructorInitializersBeforeComma: 'true'
BreakStringLiterals: 'true'
ColumnLimit: '80'
ConstructorInitializerAllOnOneLineOrOnePerLine: 'true'
ConstructorInitializerIndentWidth: '0'
ConstructorInitializerIndentWidth: '2'
ContinuationIndentWidth: '2'
Cpp11BracedListStyle: 'false'
DerivePointerAlignment: 'false'
@ -48,6 +49,7 @@ SortIncludes: 'false'
SpaceAfterCStyleCast: 'true'
SpaceAfterLogicalNot: 'false'
SpaceBeforeAssignmentOperators: 'true'
SpaceBeforeCtorInitializerColon: 'false'
SpaceBeforeParens: ControlStatements
SpaceInEmptyParentheses: 'false'
SpacesBeforeTrailingComments: '2'

View File

@ -71,7 +71,7 @@ This function should only modify configuration layer settings."
yaml
shell-scripts
(python :variables
python-shell-interpreter "/home/hsv/common/scr/python.sh"
python-shell-interpreter "~/common/scr/python.sh"
python-shell-interpreter-args "-m IPython --simple-prompt -i")
(ocaml :variables
ocaml-format-on-save t)
@ -115,6 +115,8 @@ This function should only modify configuration layer settings."
highlight-doxygen
smart-tabs-mode
tablist
exec-path-from-shell
merlin
)
;; A list of packages that cannot be updated.
@ -584,6 +586,7 @@ This function is called at the very end of Spacemacs startup, after layer
configuration.
Put your configuration code here, except for variables that should be set
before packages are loaded."
(exec-path-from-shell-initialize)
;; Key Bindings
(global-set-key (kbd "<kp-subtract>") 'centaur-tabs-backward)
@ -671,6 +674,13 @@ before packages are loaded."
(set-face-attribute 'highlight-doxygen-comment nil
:background nil
:slant 'italic)
(setq opam-share (substring (shell-command-to-string
"opam config var share 2> /dev/null") 0 -1))
(add-to-list 'load-path (concat opam-share "/emacs/site-lisp"))
(with-eval-after-load 'merlin
(setq merlin-command 'opam))
(require 'merlin)
)
;; Do not write anything past this comment. This is where Emacs will
@ -678,7 +688,7 @@ before packages are loaded."
(defun dotspacemacs/emacs-custom-settings ()
"Emacs custom settings.
This is an auto-generated function, do not modify its content directly, use
Emacs customize menu instead.
Emacs customize menu instead
This function is called at the very end of Spacemacs initialization."
(custom-set-variables
;; custom-set-variables was added by Custom.