summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Kosarek <matthew@matthewkosarek.xyz>2023-09-08 13:49:49 -0400
committerMatthew Kosarek <matthew@matthewkosarek.xyz>2023-09-08 13:49:49 -0400
commit0c7d2e113e60f0d5280c68cae2c7d7668546c27b (patch)
tree4de9527f84e60ec5df236eb287a07dee42aa4e2d
parent4cde52d01f0f6f64b4068a5f3ed26e2d669d1c39 (diff)
C/C++ styles, iterating flymake errors
-rw-r--r--lisp/cpp.el9
-rw-r--r--lisp/general.el38
2 files changed, 28 insertions, 19 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 71156f4..a20c96b 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
@@ -267,6 +268,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
)
)
@@ -291,6 +293,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 my-vterm-mode-set-colors()
@@ -346,12 +351,6 @@
(interactive)
(clipboard-kill-ring-save (point-min) (point-max)))
-(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
@@ -366,5 +365,14 @@
(use-package yasnippet-snippets
:ensure t)
+(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