From 146fca260f5d53d95ec9321441c3dc2db7aed7c5 Mon Sep 17 00:00:00 2001 From: Random936 Date: Sat, 25 Feb 2023 10:08:09 -0800 Subject: [PATCH] Updated config changes --- emacs/config.org | 44 ++++++++++++++++++++++++++++++++++++++++++- polybar/config.ini | 37 ++++++++++++++++-------------------- vim/coc-settings.json | 2 ++ vim/init.vim | 15 +++++++++------ zsh/.zshrc | 6 ++++++ 5 files changed, 76 insertions(+), 28 deletions(-) diff --git a/emacs/config.org b/emacs/config.org index 6789c00..4ad97a0 100644 --- a/emacs/config.org +++ b/emacs/config.org @@ -73,6 +73,22 @@ This function times the startup to tell you how long it took for the emacs confi (add-hook 'emacs-startup-hook #'efs/display-startup-time) #+end_src +** White Space + +This configuration replaces tabs with a custom number of spaces. + +#+begin_src emacs-lisp + (setq-default indent-tabs-mode nil) ; Use spaces instead of tabs. + (setq-default tab-width 3) ; Set tabs to be 3 spaces in length. + + ; Alias tab width for various languages. + (setq-default c-basic-offset tab-width) + (setq-default cperl-indent-level tab-width) + (setq-default lisp-body-indent tab-width) + (setq-default lisp-indent-offset tab-width) + (setq-default js-indent-level tab-width) ; For both JSON and Javascript modes. +#+end_src + * Packages Emacs and packages. Pretty much a requirement. @@ -195,6 +211,8 @@ Use doom modeline to make the modeline look nicer. (display-time)) #+end_src +In order to avoid missing icons, you should also install the package ~all-the-icons-install-fonts~ through the emacs command line. + ** Doom Themes Install doom themes for better themes. @@ -320,6 +338,7 @@ Undo tree's use is self explanitory. While the built-in emacs undo system is fin :after evil :config (evil-set-undo-system 'undo-tree) + (setq undo-tree-history-directory-alist '(("." . "~/.emacs.d/undo"))) (global-undo-tree-mode 1)) #+end_src @@ -538,7 +557,9 @@ Below I am installing the actual package and adding some basic configuration. **** Lsp-UI #+begin_src emacs-lisp - (use-package lsp-ui :after lsp-mode :commands lsp-ui-mode) + (use-package lsp-ui + :hook (lsp-mode . lsp-ui-mode) + :config (setq lsp-ui-sideline-show-diagnostics t)) #+end_src **** Lsp-Ivy @@ -561,6 +582,13 @@ Company is a package that automatically finds completions instead of making the ("" . company-indent-or-complete-common))) #+end_src +** Flycheck + +#+begin_src emacs-lisp + (use-package flycheck + :init (global-flycheck-mode)) +#+end_src + ** Language Servers This will include any language server packages and configuration. @@ -617,6 +645,20 @@ Install ~ccls~ with homebrew using the following command. sudo apt install ccls #+end_src +*** Golang + +#+begin_src emacs-lisp + (use-package go-mode + :hook (go-mode . lsp-deferred)) +#+end_src + +*** JSON + +#+begin_src emacs-lisp + (use-package json-mode + :hook (json-mode . lsp-deferred)) +#+end_src + * Terminal Emacs also has the functionality to run a terminal environment. While many other terminals will try to have similar capabilities with keybindings, nothing matches just integrating your terminal in emacs. diff --git a/polybar/config.ini b/polybar/config.ini index 5c98ed8..1c7074d 100644 --- a/polybar/config.ini +++ b/polybar/config.ini @@ -26,6 +26,7 @@ alert = #A54242 disabled = #707880 [bar/example] +monitor = ${env:MONITOR} width = 100% height = 24pt radius = 6 @@ -51,7 +52,7 @@ separator-foreground = ${colors.disabled} font-0 = monospace;2 modules-left = xworkspaces xwindow -modules-right = filesystem brightness pulseaudio memory cpu battery wlan eth date +modules-right = filesystem brightness pulseaudio memory cpu battery network date cursor-click = pointer cursor-scroll = ns-resize @@ -86,7 +87,7 @@ label-empty-padding = 1 [module/xwindow] type = internal/xwindow -label = %title:0:60:...% +label = %title:0:30:...% [module/filesystem] type = internal/fs @@ -113,7 +114,7 @@ label-muted-foreground = ${colors.disabled} [module/brightness] type = internal/backlight -card = amdgpu_bl0 +card = intel_backlight format-prefix = "BRI " format-prefix-foreground = ${colors.primary} @@ -136,14 +137,15 @@ format-prefix-foreground = ${colors.primary} format =