diff --git a/README.org b/README.org index 37acaa7..0fc1b0e 100644 --- a/README.org +++ b/README.org @@ -29,15 +29,15 @@ * Package System Setup -Package sources and initialization. +** Package Sources and Initialization. #+begin_src emacs-lisp :tangle init.el ;; Initialize package sources (require 'package) (setq package-archives '(("melpa" . "https://melpa.org/packages/") - ("org" . "https://orgmode.org/elpa/") - ("elpa" . "https://elpa.gnu.org/packages/"))) + ("gnu-elpa" . "https://elpa.gnu.org/packages/") + ("nongnu-elpa" . "https://elpa.nongnu.org/nongnu/"))) (package-initialize) (unless package-archive-contents @@ -51,7 +51,15 @@ Package sources and initialization. (setq use-package-always-ensure t) #+end_src - Basic UI Configuration +** Auto Update Packages + +#+begin_src emacs-lisp :tangle init.el + (use-package auto-package-update + :init + (auto-package-update-maybe)) +#+end_src + +* Basic UI Configuration ** Disable Unnecessary Visual Elements @@ -203,13 +211,13 @@ Add ligature support for Fira Code font. ** Color Theme #+begin_src emacs-lisp :tangle init.el - ;; ;; Dracula Doom Theme - ;; (use-package doom-themes - ;; :init (load-theme 'doom-dracula t)) + ;; Dracula Doom Theme + (use-package doom-themes + :init (load-theme 'doom-dracula t)) - ;; Dracula Pro Theme - (add-to-list 'custom-theme-load-path "~/.config/emacs/themes") - (load-theme 'dracula-pro t) + ;; ;; Dracula Pro Theme + ;; (add-to-list 'custom-theme-load-path "~/.config/emacs/themes") + ;; (load-theme 'dracula-pro t) #+end_src ** Better Modeline @@ -318,6 +326,7 @@ Use Hydra to design a transient key binding for quickly adjusting the scale of t #+begin_src emacs-lisp :tangle init.el (use-package highlight-indent-guides :hook (prog-mode . highlight-indent-guides-mode) + :hook (text-mode . highlight-indent-guides-mode) :init (setq highlight-indent-guides-method 'fill) (setq highlight-indent-guides-responsive 'stack) @@ -610,6 +619,12 @@ Add ~#+auto_tangle: t~ to the org document to enable this. (use-package vimrc-mode) #+end_src +**** C/C++ + +#+begin_src emacs-lisp :tangle init.el + (use-package cc-mode) +#+end_src + *** Language Servers #+begin_src emacs-lisp :tangle init.el diff --git a/init.el b/init.el index 29b03e7..590d5e8 100644 --- a/init.el +++ b/init.el @@ -11,8 +11,8 @@ (require 'package) (setq package-archives '(("melpa" . "https://melpa.org/packages/") - ("org" . "https://orgmode.org/elpa/") - ("elpa" . "https://elpa.gnu.org/packages/"))) + ("gnu-elpa" . "https://elpa.gnu.org/packages/") + ("nongnu-elpa" . "https://elpa.nongnu.org/nongnu/"))) (package-initialize) (unless package-archive-contents @@ -25,6 +25,10 @@ (require 'use-package) (setq use-package-always-ensure t) +(use-package auto-package-update + :init + (auto-package-update-maybe)) + (setq inhibit-startup-message t) ; Disable startup message (scroll-bar-mode -1) ; Disable visible scrollbar @@ -135,13 +139,13 @@ :config (evilem-default-keybindings "SPC")) -;; ;; Dracula Doom Theme -;; (use-package doom-themes -;; :init (load-theme 'doom-dracula t)) +;; Dracula Doom Theme +(use-package doom-themes + :init (load-theme 'doom-dracula t)) -;; Dracula Pro Theme -(add-to-list 'custom-theme-load-path "~/.config/emacs/themes") -(load-theme 'dracula-pro t) +;; ;; Dracula Pro Theme +;; (add-to-list 'custom-theme-load-path "~/.config/emacs/themes") +;; (load-theme 'dracula-pro t) ;; Icon Fonts (use-package all-the-icons) @@ -219,6 +223,7 @@ (use-package highlight-indent-guides :hook (prog-mode . highlight-indent-guides-mode) + :hook (text-mode . highlight-indent-guides-mode) :init (setq highlight-indent-guides-method 'fill) (setq highlight-indent-guides-responsive 'stack) @@ -434,6 +439,8 @@ (use-package vimrc-mode) +(use-package cc-mode) + (defun sb/lsp-mode-setup () (setq lsp-headerline-breadcrumb-segments '(path-up-to-project file symbols)) (lsp-headerline-breadcrumb-mode)) @@ -495,3 +502,16 @@ ;; Rainbow Delimiters (use-package rainbow-delimiters :hook (prog-mode . rainbow-delimiters-mode)) +(custom-set-variables + ;; custom-set-variables was added by Custom. + ;; If you edit it by hand, you could mess it up, so be careful. + ;; Your init file should contain only one such instance. + ;; If there is more than one, they won't work right. + '(package-selected-packages + '(doom-themes which-key vimrc-mode use-package rainbow-delimiters org-bullets org-auto-tangle magit lsp-ui lsp-treemacs lsp-ivy ivy-rich highlight-indent-guides helpful haskell-mode gitignore-mode gitconfig-mode gitattributes-mode general fish-mode evil-nerd-commenter evil-easymotion evil-collection doom-modeline counsel-projectile company-box auto-package-update))) +(custom-set-faces + ;; custom-set-faces was added by Custom. + ;; If you edit it by hand, you could mess it up, so be careful. + ;; Your init file should contain only one such instance. + ;; If there is more than one, they won't work right. + )