This commit is contained in:
Sakooooo 2023-09-11 08:44:29 +04:00
parent dfcf465669
commit fe20dffcde
Signed by: sako
GPG key ID: 3FD715D87D7725E0

View file

@ -7,7 +7,8 @@ CLOSED: [2023-09-08 Fri 23:20]
:LOGBOOK: :LOGBOOK:
- State "DONE" from "TODO" [2023-09-08 Fri 23:20] - State "DONE" from "TODO" [2023-09-08 Fri 23:20]
:END: :END:
video: https://youtu.be/E-NAM9U5JYE?t=1760 ** TODO Finish Video
video: https://youtu.be/E-NAM9U5JYE?t=1815
* Usage * Usage
M-x org-bable-tangle M-x org-bable-tangle
@ -67,12 +68,12 @@ M-x org-bable-tangle
(require 'use-package) (require 'use-package)
(setq use-package-always-ensure t) (setq use-package-always-ensure t)
#+end_src #+end_src
** Packages * Packages
*** Command Log Mode ** Command Log Mode
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package command-log-mode) (use-package command-log-mode)
#+end_src #+end_src
*** Command Autocompletion Packages ** Command Autocompletion Packages
#+begin_src emacs-lisp #+begin_src emacs-lisp
;; better search ;; better search
(use-package swiper) (use-package swiper)
@ -112,7 +113,7 @@ M-x org-bable-tangle
:config :config
(setq ivy-inital-inputs-alist nil)) (setq ivy-inital-inputs-alist nil))
#+end_src #+end_src
*** Custom Themes ** Custom Themes
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package doom-themes (use-package doom-themes
:ensure t :ensure t
@ -121,7 +122,7 @@ M-x org-bable-tangle
(setq doom-themes-enable-bold t ; if nil, bold is universally disabled (setq doom-themes-enable-bold t ; if nil, bold is universally disabled
doom-themes-enable-italic t) ; if nil, italics is universally disabled doom-themes-enable-italic t) ; if nil, italics is universally disabled
;; load the theme ;; load the theme
(load-theme 'doom-monokai-pro t) (load-theme 'doom-challenger-deep t)
;; Enable flashing mode-line on errors ;; Enable flashing mode-line on errors
(doom-themes-visual-bell-config)) (doom-themes-visual-bell-config))
@ -133,7 +134,7 @@ M-x org-bable-tangle
;; Corrects (and improves) org-mode's native fontification. ;; Corrects (and improves) org-mode's native fontification.
;;(doom-themes-org-config)) ;;(doom-themes-org-config))
#+end_src #+end_src
*** Nerd-Fonts (All of the Icons doesnt work for me) ** Nerd-Fonts (All of the Icons doesnt work for me)
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package nerd-icons (use-package nerd-icons
:custom :custom
@ -142,13 +143,13 @@ M-x org-bable-tangle
(nerd-icons-font-family "JetBrainsMono NF") (nerd-icons-font-family "JetBrainsMono NF")
) )
#+end_src #+end_src
*** Rainbow Delimiters ** Rainbow Delimiters
**** TODO find something like this for other languages **** TODO find something like this for other languages
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package rainbow-delimiters (use-package rainbow-delimiters
:hook (prog-mode . rainbow-delimiters-mode)) :hook (prog-mode . rainbow-delimiters-mode))
#+end_src #+end_src
*** Keybinding autocompletion ** Keybinding autocompletion
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package which-key (use-package which-key
:init (which-key-mode) :init (which-key-mode)
@ -156,14 +157,14 @@ M-x org-bable-tangle
:config :config
(setq which-key-idle-delay 1)) (setq which-key-idle-delay 1))
#+end_src #+end_src
*** Custom Modeline ** Custom Modeline
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package doom-modeline (use-package doom-modeline
:ensure t :ensure t
:init (doom-modeline-mode 1) :init (doom-modeline-mode 1)
:custom ((doom-modeline-height 35))) :custom ((doom-modeline-height 35)))
#+end_src #+end_src
*** Better help menu ** Better help menu
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package helpful (use-package helpful
:ensure t :ensure t
@ -176,7 +177,7 @@ M-x org-bable-tangle
([remap describe-variable] . counsel-describe-variable) ([remap describe-variable] . counsel-describe-variable)
([remap describe-key] . helpful-key)) ([remap describe-key] . helpful-key))
#+end_src #+end_src
*** General Leader Key ** General Leader Key
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package general (use-package general
:config :config
@ -188,7 +189,7 @@ M-x org-bable-tangle
"t" `(:ignore t :which-key "toggles") "t" `(:ignore t :which-key "toggles")
"tt" `(counsel-load-theme :which-key "choose theme"))) "tt" `(counsel-load-theme :which-key "choose theme")))
#+end_src #+end_src
*** Evil Mode (vim) ** Evil Mode (vim)
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package evil (use-package evil
:init :init
@ -217,7 +218,7 @@ M-x org-bable-tangle
:config :config
(evil-collection-init)) (evil-collection-init))
#+end_src #+end_src
*** Hydra for scaling text ** Hydra for scaling text
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package hydra) (use-package hydra)
(defhydra hydra-text-scale (:timeout 4) (defhydra hydra-text-scale (:timeout 4)
@ -229,7 +230,7 @@ M-x org-bable-tangle
(sakomacs/leader-keys (sakomacs/leader-keys
"ts" '(hydra-text-scale/body :which-key "scale text")) "ts" '(hydra-text-scale/body :which-key "scale text"))
#+end_src #+end_src
*** Helpful for projects ** Helpful for projects
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package projectile (use-package projectile
:diminish projectile-mode :diminish projectile-mode
@ -246,7 +247,7 @@ M-x org-bable-tangle
(use-package counsel-projectile (use-package counsel-projectile
:config (counsel-projectile-mode)) :config (counsel-projectile-mode))
#+end_src #+end_src
*** Org-Mode ** Org-Mode
#+begin_src emacs-lisp #+begin_src emacs-lisp
(defun sakomacs/org-mode-setup () (defun sakomacs/org-mode-setup ()
(org-indent-mode) (org-indent-mode)
@ -352,22 +353,22 @@ M-x org-bable-tangle
(use-package visual-fill-column (use-package visual-fill-column
:hook (org-mode . sakomacs/org-mode-visual-fill)) :hook (org-mode . sakomacs/org-mode-visual-fill))
#+end_src #+end_src
*** Dev Packages ** Dev Packages
**** Magit (git in emacs) *** Magit (git in emacs)
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package magit (use-package magit
:custom :custom
(magit-display-buffer-function #'magit-display-buffer-same-window-except-diff-v1)) (magit-display-buffer-function #'magit-display-buffer-same-window-except-diff-v1))
#+end_src #+end_src
**** Forge for Magit (Adds github, gitlab, etc PRs and Issues to magit) *** Forge for Magit (Adds github, gitlab, etc PRs and Issues to magit)
make sure to setup authinfo make sure to setup authinfo
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package forge (use-package forge
:after magit) :after magit)
(setq auth-sources '("~/.authinfo")) (setq auth-sources '("~/.authinfo"))
#+end_src #+end_src
**** Lsp-mode *** Lsp-mode
***** Language Servers **** Language Servers
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package lsp-mode (use-package lsp-mode
:commands (lsp lsp-deferred) :commands (lsp lsp-deferred)
@ -376,8 +377,8 @@ make sure to setup authinfo
:config :config
(lsp-enable-which-key-integration t)) (lsp-enable-which-key-integration t))
#+end_src #+end_src
***** Languages **** Languages
****** Typescript ***** Typescript
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package js2-mode (use-package js2-mode
:mode "\\.js\\'" :mode "\\.js\\'"