diff options
author | Matthew Kosarek <matthew@matthewkosarek.xyz> | 2023-09-19 10:29:18 -0400 |
---|---|---|
committer | Matthew Kosarek <matthew@matthewkosarek.xyz> | 2023-09-19 10:29:18 -0400 |
commit | d45137bb3f9b1d1d1a215a115e26c4d46568afd8 (patch) | |
tree | dcd3607dc82ffac638538e6af85d784b56f3ab04 | |
parent | 8a34cf5a197f7176210cc91b5f26999676ced574 (diff) | |
parent | 0c7d2e113e60f0d5280c68cae2c7d7668546c27b (diff) |
Merge branch 'master' of matthewkosarek.xyz:/srv/git/emacs_config
-rw-r--r-- | lisp/cpp.el | 9 | ||||
-rw-r--r-- | lisp/general.el | 43 |
2 files changed, 32 insertions, 20 deletions
diff --git a/lisp/cpp.el b/lisp/cpp.el index d7a58e7..264c059 100644 --- a/lisp/cpp.el +++ b/lisp/cpp.el @@ -5,22 +5,23 @@ (setq c++-tab-always-indent 0) (setq c-basic-offset 4) ;; Default is 2 (setq c-indent-level 4) ;; Default is 2 - (c-set-offset 'brace-list-open 0) (setq tab-stop-list '(4 8 12 16 20 24 28 32 36 40 44 48 52 56 60)) (setq tab-width 4) - ;; (electric-indent-mode 0) ) (add-hook 'c-mode-common-hook 'setup-c) +(c-set-offset 'brace-list-open 0) +(c-set-offset 'substatement-open 0) +(c-set-offset 'arglist-intro '+) +(c-set-offset 'arglist-cont-non-empty '+) + (defun create-cpp-class() "Create a cpp class." (interactive "Enter the name of the class: ") ) -(defun me:c-mode-config () - (c-set-style "ellemtel")) (provide 'cpp) ;;; cpp.el ends here diff --git a/lisp/general.el b/lisp/general.el index 068552e..7155d8a 100644 --- a/lisp/general.el +++ b/lisp/general.el @@ -191,15 +191,16 @@ :ensure t) ;; Emojis -(use-package emojify - :ensure t - :config - (when (member "Segoe UI Emoji" (font-family-list)) - (set-fontset-font - t 'symbol (font-spec :family "Segoe UI Emoji") nil 'prepend)) - (setq emojify-display-style 'unicode) - (setq emojify-emoji-styles '(unicode)) - (bind-key* (kbd "C-c e") #'emojify-insert-emoji)) ; override binding in any mode +;; (use-package emojify +;; :ensure t +;; :config +;; (when (member "Segoe UI Emoji" (font-family-list)) +;; (set-fontset-font +;; t 'symbol (font-spec :family "Segoe UI Emoji") nil 'prepend)) +;; (setq emojify-display-style 'unicode) +;; (setq emojify-emoji-styles '(unicode)) +;; (bind-key* (kbd "C-c e") #'emojify-insert-emoji)) ; override binding i +;; n any mode ;; icons (use-package all-the-icons @@ -220,6 +221,7 @@ company-minimum-prefix-length 2 company-tooltip-limit 10 company-backends '((company-capf company-gtags company-elisp company-css company-dabbrev company-nxml)) + company-dabbrev-downcase nil ) ) @@ -244,6 +246,9 @@ (set-face-underline 'eglot-highlight-symbol-face t) +(bind-key* (kbd "M-n") 'flymake-goto-next-error) +(bind-key* (kbd "M-p") 'flymake-goto-prev-error) + ;; Vterm (defun vterm-mode-set-colors() @@ -293,12 +298,6 @@ (define-key drag-stuff-mode-map (drag-stuff--kbd 'down) 'drag-stuff-down) ) -(use-package flycheck - :ensure t - :config - (setq flycheck-check-syntax-automatically '(save mode-enable)) - '(flycheck-idle-change-delay 1)) - ;; Snippets (use-package yasnippet :ensure t @@ -314,7 +313,19 @@ :ensure t) (use-package ledger-mode - :ensure t) + :ensure t + :config + (add-to-list 'auto-mode-alist '("\\.ledger\\'" . ledger-mode))) + +(use-package plantuml-mode + :ensure t + :config + (add-to-list 'auto-mode-alist '("\\.puml\\'" . plantuml-mode))) + +(add-hook 'plantuml-mode-hook + (lambda () + (setq indent-line-function (lambda () 'noindent)))) + (provide 'general) ;;; general.el ends here |