Browse Source

Reorganize package categories

master
Riyyi 3 years ago
parent
commit
7af24059a1
  1. 161
      .config/emacs/config.org

161
.config/emacs/config.org

@ -30,17 +30,23 @@
- [[#org-export-packages][Org Export Packages]] - [[#org-export-packages][Org Export Packages]]
- [[#completion][Completion]] - [[#completion][Completion]]
- [[#company][Company]] - [[#company][Company]]
- [[#yasnippet][YASnippet]]
- [[#checkers][Checkers]]
- [[#flycheck][Flycheck]] - [[#flycheck][Flycheck]]
- [[#flyspell][Flyspell]]
- [[#programming-integration][Programming Integration]]
- [[#lsp][LSP]] - [[#lsp][LSP]]
- [[#dap][DAP]] - [[#dap][DAP]]
- [[#yasnippet][YASnippet]] - [[#programming-languages][Programming Languages]]
- [[#cc][C/C++]] - [[#cc][C/C++]]
- [[#lua][Lua]] - [[#lua][Lua]]
- [[#yaml][YAML]]
- [[#php][PHP]] - [[#php][PHP]]
- [[#prettify][Prettify]] - [[#cmake][CMake]]
- [[#glsl][GLSL]]
- [[#yaml][YAML]]
- [[#rss][RSS]] - [[#rss][RSS]]
- [[#git][Git]] - [[#git][Git]]
- [[#prettify][Prettify]]
- [[#general][General]] - [[#general][General]]
- [[#buffers][Buffers]] - [[#buffers][Buffers]]
- [[#electric][Electric]] - [[#electric][Electric]]
@ -256,12 +262,6 @@ Install and configure packages.
((latex-indent-line . 4) ((latex-indent-line . 4)
(latex-indent-region . 4))) (latex-indent-region . 4)))
(smart-tabs-insinuate 'c 'c++ 'java 'python 'latex)) (smart-tabs-insinuate 'c 'c++ 'java 'python 'latex))
(use-package flyspell-correct
:after flyspell
:config
(setq flyspell-issue-message-flag nil)
(setq flyspell-issue-welcome-flag nil))
#+END_SRC #+END_SRC
*** Evil *** Evil
@ -512,7 +512,6 @@ Autocomplete packages (includes code completion and snippets).
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package company (use-package company
:defer t
:hook :hook
((c-mode-common ((c-mode-common
emacs-lisp-mode emacs-lisp-mode
@ -533,13 +532,30 @@ Autocomplete packages (includes code completion and snippets).
:config (company-prescient-mode 1)) :config (company-prescient-mode 1))
#+END_SRC #+END_SRC
**** YASnippet
#+BEGIN_SRC emacs-lisp
(use-package yasnippet
:defer t
:init
(setq yas-snippet-dirs (list (concat dot-emacs-dir "/snippets")))
(setq yas-prompt-functions '(yas-completing-prompt))
:config
(yas-global-mode))
(use-package yasnippet-snippets
:after yasnippet)
#+END_SRC
https://stackoverflow.com/questions/22735895/configuring-a-yasnippet-for-two-scenarios-1-region-is-active-2-region-is
*** Checkers
**** Flycheck **** Flycheck
On the fly syntax checking. On the fly syntax checking.
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package flycheck (use-package flycheck
:defer t
:hook :hook
((c-mode-common ((c-mode-common
emacs-lisp-mode emacs-lisp-mode
@ -567,6 +583,20 @@ On the fly syntax checking.
:config (setq flycheck-clang-tidy-extra-options "--format-style=file")) :config (setq flycheck-clang-tidy-extra-options "--format-style=file"))
#+END_SRC #+END_SRC
**** Flyspell
Give Flyspell a selection menu.
#+BEGIN_SRC emacs-lisp
(use-package flyspell-correct
:defer t
:after flyspell
:config
(setq flyspell-issue-message-flag nil)
(setq flyspell-issue-welcome-flag nil))
#+END_SRC
*** Programming Integration
**** LSP **** LSP
Language Server Protocol. Language Server Protocol.
@ -648,23 +678,7 @@ Debug Adapter Protocol.
(make-directory dap-utils-extension-path t))) (make-directory dap-utils-extension-path t)))
#+END_SRC #+END_SRC
**** YASnippet *** Programming Languages
#+BEGIN_SRC emacs-lisp
(use-package yasnippet
:defer t
:init
(setq yas-snippet-dirs (list (concat dot-emacs-dir "/snippets")))
(setq yas-prompt-functions '(yas-completing-prompt))
:config
(yas-global-mode))
(use-package yasnippet-snippets
:after yasnippet)
#+END_SRC
https://stackoverflow.com/questions/22735895/configuring-a-yasnippet-for-two-scenarios-1-region-is-active-2-region-is
**** C/C++ **** C/C++
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
@ -679,7 +693,7 @@ https://stackoverflow.com/questions/22735895/configuring-a-yasnippet-for-two-sce
(add-to-list 'company-backends 'company-glsl))) (add-to-list 'company-backends 'company-glsl)))
#+END_SRC #+END_SRC
*** Lua **** Lua
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package lua-mode (use-package lua-mode
@ -687,14 +701,7 @@ https://stackoverflow.com/questions/22735895/configuring-a-yasnippet-for-two-sce
:config (setq lua-indent-level 4)) :config (setq lua-indent-level 4))
#+END_SRC #+END_SRC
*** YAML **** PHP
#+BEGIN_SRC emacs-lisp
(use-package yaml-mode
:defer t)
#+END_SRC
*** PHP
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package php-mode (use-package php-mode
@ -708,48 +715,27 @@ https://stackoverflow.com/questions/22735895/configuring-a-yasnippet-for-two-sce
:defer t) :defer t)
#+END_SRC #+END_SRC
*** Prettify **** CMake
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package dashboard
:demand
:hook (dashboard-mode . dot/hook-disable-line-numbers)
:config
(setq initial-buffer-choice (lambda () (get-buffer "*dashboard*")))
(setq dashboard-banner-logo-title "GNU Emacs master race!")
(setq dashboard-center-content t)
(setq dashboard-set-file-icons t)
(setq dashboard-set-footer nil)
(setq dashboard-set-heading-icons t)
(setq dashboard-show-shortcuts t)
(setq dashboard-startup-banner 'logo)
(setq dashboard-items '((projects . 10)
(bookmarks . 5)
(recents . 5)))
(dashboard-setup-startup-hook))
;; A better *help* buffer
(use-package helpful
:hook (helpful-mode . dot/hook-disable-line-numbers))
(use-package rainbow-mode
:hook (prog-mode . rainbow-mode))
(use-package rainbow-delimiters
:hook (prog-mode . rainbow-delimiters-mode))
(use-package org-bullets
:hook (org-mode . org-bullets-mode))
;; Cmake syntax highlighting
(use-package cmake-mode (use-package cmake-mode
:defer t) :defer t)
#+END_SRC
;; Shader syntax highlighting **** GLSL
#+BEGIN_SRC emacs-lisp
(use-package glsl-mode (use-package glsl-mode
:defer t) :defer t)
#+END_SRC #+END_SRC
**** YAML
#+BEGIN_SRC emacs-lisp
(use-package yaml-mode
:defer t)
#+END_SRC
*** RSS *** RSS
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
@ -777,6 +763,7 @@ https://stackoverflow.com/questions/22735895/configuring-a-yasnippet-for-two-sce
:hook (prog-mode . (lambda () (when (vc-registered buffer-file-name) (diff-hl-flydiff-mode) (dot/toggle-fringe 1))))) :hook (prog-mode . (lambda () (when (vc-registered buffer-file-name) (diff-hl-flydiff-mode) (dot/toggle-fringe 1)))))
(use-package transient (use-package transient
:defer t
:config (setq transient-history-file (concat dot-cache-dir "/transient/history.el"))) :config (setq transient-history-file (concat dot-cache-dir "/transient/history.el")))
(use-package magit (use-package magit
@ -792,6 +779,40 @@ https://stackoverflow.com/questions/22735895/configuring-a-yasnippet-for-two-sce
("~/code" . 3)))) ("~/code" . 3))))
#+END_SRC #+END_SRC
*** Prettify
#+BEGIN_SRC emacs-lisp
(use-package dashboard
:demand
:hook (dashboard-mode . dot/hook-disable-line-numbers)
:config
(setq initial-buffer-choice (lambda () (get-buffer "*dashboard*")))
(setq dashboard-banner-logo-title "GNU Emacs master race!")
(setq dashboard-center-content t)
(setq dashboard-set-file-icons t)
(setq dashboard-set-footer nil)
(setq dashboard-set-heading-icons t)
(setq dashboard-show-shortcuts t)
(setq dashboard-startup-banner 'logo)
(setq dashboard-items '((projects . 10)
(bookmarks . 5)
(recents . 5)))
(dashboard-setup-startup-hook))
;; A better *help* buffer
(use-package helpful
:hook (helpful-mode . dot/hook-disable-line-numbers))
(use-package rainbow-mode
:hook (prog-mode . rainbow-mode))
(use-package rainbow-delimiters
:hook (prog-mode . rainbow-delimiters-mode))
(use-package org-bullets
:hook (org-mode . org-bullets-mode))
#+END_SRC
* General * General
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp

Loading…
Cancel
Save