Browse Source

Config: Set Emacs CMake tab width, plus some small tweaks

master
Riyyi 3 years ago
parent
commit
f99ad75730
  1. 10
      .config/emacs/config.org

10
.config/emacs/config.org

@ -4,8 +4,8 @@
#+LANGUAGE: en #+LANGUAGE: en
#+OPTIONS: toc:nil #+OPTIONS: toc:nil
#+SETUPFILE: https://fniessen.github.io/org-html-themes/org/theme-readtheorg.setup #+SETUPFILE: https://fniessen.github.io/org-html-themes/org/theme-readtheorg.setup
#+LATEX_HEADER: \usepackage{color}
#+LATEX_HEADER: \usepackage[top=100pt,bottom=100pt,left=75pt,right=75pt]{geometry} #+LATEX_HEADER: \usepackage[top=100pt,bottom=100pt,left=75pt,right=75pt]{geometry}
#+LATEX_HEADER: \usepackage{color}
#+LATEX_HEADER: \definecolor{blue}{rgb}{0,0.5,1} #+LATEX_HEADER: \definecolor{blue}{rgb}{0,0.5,1}
#+LATEX_HEADER: \hypersetup{colorlinks=true, linkcolor=blue, urlcolor=blue, citecolor=blue} #+LATEX_HEADER: \hypersetup{colorlinks=true, linkcolor=blue, urlcolor=blue, citecolor=blue}
@ -225,7 +225,7 @@ Install and configure packages.
:config :config
(setq which-key-add-column-padding 1) (setq which-key-add-column-padding 1)
(setq which-key-max-display-columns nil) (setq which-key-max-display-columns nil)
(setq which-key-min-display-lines 5) (setq which-key-min-display-lines 6)
(setq which-key-sort-order 'dot/which-key-prefix-then-key-order-alpha) (setq which-key-sort-order 'dot/which-key-prefix-then-key-order-alpha)
(setq which-key-sort-uppercase-first nil)) (setq which-key-sort-uppercase-first nil))
@ -655,6 +655,7 @@ Language Server Protocol.
:after (flycheck lsp-mode) :after (flycheck lsp-mode)
:config :config
(setq lsp-ui-doc-border (face-foreground 'default)) (setq lsp-ui-doc-border (face-foreground 'default))
(setq lsp-ui-doc-delay 0.5)
(setq lsp-ui-doc-enable nil) (setq lsp-ui-doc-enable nil)
(setq lsp-ui-doc-header t) (setq lsp-ui-doc-header t)
(setq lsp-ui-doc-include-signature t) (setq lsp-ui-doc-include-signature t)
@ -732,6 +733,7 @@ Debug Adapter Protocol.
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package cmake-mode (use-package cmake-mode
:config (setq cmake-tab-width 4)
:defer t) :defer t)
#+END_SRC #+END_SRC
@ -786,7 +788,9 @@ Debug Adapter Protocol.
:hook (magit-pre-refresh . diff-hl-magit-pre-refresh) :hook (magit-pre-refresh . diff-hl-magit-pre-refresh)
:hook (magit-post-refresh . diff-hl-magit-post-refresh) :hook (magit-post-refresh . diff-hl-magit-post-refresh)
:config :config
(setq git-commit-fill-column 72)
(setq git-commit-summary-max-length 70) (setq git-commit-summary-max-length 70)
(setq magit-completing-read-function #'selectrum-completing-read)
(setq magit-diff-paint-whitespace-lines 'both) (setq magit-diff-paint-whitespace-lines 'both)
(setq magit-repository-directories '(("~/dotfiles" . 0) (setq magit-repository-directories '(("~/dotfiles" . 0)
("~/code" . 3))) ("~/code" . 3)))
@ -823,7 +827,7 @@ Debug Adapter Protocol.
:hook (helpful-mode . dot/hook-disable-line-numbers)) :hook (helpful-mode . dot/hook-disable-line-numbers))
(use-package rainbow-mode (use-package rainbow-mode
:hook (prog-mode . rainbow-mode)) :hook (css-mode . rainbow-mode))
(use-package rainbow-delimiters (use-package rainbow-delimiters
:hook (prog-mode . rainbow-delimiters-mode)) :hook (prog-mode . rainbow-delimiters-mode))

Loading…
Cancel
Save