summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJackJ30 <jackqjamison@proton.me>2025-01-03 01:03:10 -0500
committerJackJ30 <jackqjamison@proton.me>2025-01-03 01:03:10 -0500
commit582143746c383562fe6ea70f217a6668333dbc9a (patch)
tree301ac1eea1e810a3179f17a77bc5cd2e425a6e13
parent86be8fdd081669813ee2d5d7560704cc8dedc87d (diff)
development improvements
-rw-r--r--.config/emacs/init.el2
-rw-r--r--.config/emacs/settings.org42
2 files changed, 25 insertions, 19 deletions
diff --git a/.config/emacs/init.el b/.config/emacs/init.el
index ffaaaa5..1a569d2 100644
--- a/.config/emacs/init.el
+++ b/.config/emacs/init.el
@@ -8,7 +8,7 @@
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(package-selected-packages
- '(flycheck color-identifiers-mode consult doom-themes lsp-ui lsp-mode rainbow-delimiters yasnippet-snippets markdown-mode yasnippet no-littering vertico orderless marginalia vc-use-package miasma-theme kind-icon dracula-theme corfu)))
+ '(diminish evil-nerd-commenter expand-region flycheck color-identifiers-mode consult doom-themes lsp-ui lsp-mode rainbow-delimiters yasnippet-snippets markdown-mode yasnippet no-littering vertico orderless marginalia vc-use-package miasma-theme kind-icon dracula-theme corfu)))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
diff --git a/.config/emacs/settings.org b/.config/emacs/settings.org
index 59ecf69..7308fb2 100644
--- a/.config/emacs/settings.org
+++ b/.config/emacs/settings.org
@@ -37,7 +37,7 @@
#+BEGIN_SRC emacs-lisp
(use-package no-littering)
-
+
(setq make-backup-files nil
create-lockfiles nil
erc-join-buffer 'window
@@ -46,6 +46,9 @@
(setq inhibit-startup-message t
backup-inhibited t)
+ (setf dired-kill-when-opening-new-dired-buffer t)
+ (setq dired-dwim-target t)
+
#+END_SRC
* Basic UI Improvements
#+BEGIN_SRC emacs-lisp
@@ -75,7 +78,14 @@
(global-set-key (kbd "M-n") 'scroll-up-line)
(global-set-key (kbd "M-p") 'scroll-down-line)
#+END_SRC
-
+* Diminish
+#+BEGIN_SRC emacs-lisp
+ (use-package diminish
+ :diminish flymake-mode
+ :diminish flycheck-mode
+ :diminish yas-minor-mode
+ :diminish eldoc-mode)
+#+END_SRC
* Themeing
#+BEGIN_SRC emacs-lisp
(use-package doom-themes
@@ -202,16 +212,16 @@
(use-package lsp-ui
:hook (lsp-mode . lsp-ui-mode)
- :bind ("C-c r" . lsp-ui-peek-find-references)
+ :bind ("C-c r" . lsp-ui-peek-find-references))
#+END_SRC
** Flycheck
-#+BEGIN_SRC
- (use-package flycheck
- :config
- (add-hook 'after-init-hook #'global-flycheck-mode))
+#+BEGIN_SRC emacs-lisp
+ (use-package flycheck
+ :config
+ (add-hook 'after-init-hook #'global-flycheck-mode))
#+END_SRC
** Corfu
@@ -245,16 +255,11 @@
(defun my-c-mode-common-hook ()
;; my customizations for all of c-mode, c++-mode, objc-mode, java-mode
- (c-set-offset 'substatement-open 0)
- ;; other customizations can go here
-
- (setq c++-tab-always-indent t)
- (setq c-basic-offset 4) ;; Default is 2
- (setq c-indent-level 4) ;; Default is 2
-
- (setq tab-stop-list '(4 8 12 16 20 24 28 32 36 40 44 48 52 56 60))
- (setq tab-width 4)
- (setq indent-tabs-mode t))
+ (setq c-default-style "k&r"
+ c-basic-offset 4
+ tab-width 8
+ indent-tabs-mode t)
+ (c-set-offset 'arglist-intro '+))
(add-hook 'c-mode-common-hook 'my-c-mode-common-hook)
#+END_SRC
@@ -292,7 +297,6 @@
orig-result)))
(advice-add 'lsp-resolve-final-command :around #'lsp-booster--advice-final-command)
#+END_SRC
-
* Util and Keybinds
#+BEGIN_SRC emacs-lisp
(use-package expand-region
@@ -301,4 +305,6 @@
(use-package evil-nerd-commenter
:bind ("M-;" . evilnc-comment-or-uncomment-lines))
+ (global-set-key (kbd "C-c e") 'consult-flymake)
+
#+END_SRC