(Emacs)-HTML_CONTAINER calls in headings
No need to clutter my config with HTML setups, instead just use the table of contents to get to places.
This commit is contained in:
@@ -9,10 +9,9 @@ My configuration for vanilla Emacs
|
|||||||
#+end_center
|
#+end_center
|
||||||
#+latex: \clearpage
|
#+latex: \clearpage
|
||||||
|
|
||||||
|
#+toc: headlines
|
||||||
|
|
||||||
* Initial
|
* Initial
|
||||||
:PROPERTIES:
|
|
||||||
:HTML_CONTAINER: details
|
|
||||||
:END:
|
|
||||||
Let's setup some basics.
|
Let's setup some basics.
|
||||||
|
|
||||||
Firstly, set full name and mail address for use in a variety of
|
Firstly, set full name and mail address for use in a variety of
|
||||||
@@ -121,9 +120,6 @@ Setting the path variable cos it can get annoying sometimes
|
|||||||
(getenv "PATH"))))
|
(getenv "PATH"))))
|
||||||
#+end_src
|
#+end_src
|
||||||
* Custom Functions
|
* Custom Functions
|
||||||
:PROPERTIES:
|
|
||||||
:HTML_CONTAINER: details
|
|
||||||
:END:
|
|
||||||
These are custom functions I have defined for various purposes.
|
These are custom functions I have defined for various purposes.
|
||||||
** New line function
|
** New line function
|
||||||
Vim bindings don't have a nice way of adding new lines before or after
|
Vim bindings don't have a nice way of adding new lines before or after
|
||||||
@@ -209,9 +205,6 @@ common use of this macro.
|
|||||||
`(quote (lambda () ,@CDR)))
|
`(quote (lambda () ,@CDR)))
|
||||||
#+end_src
|
#+end_src
|
||||||
* Core packages
|
* Core packages
|
||||||
:PROPERTIES:
|
|
||||||
:HTML_CONTAINER: details
|
|
||||||
:END:
|
|
||||||
** General
|
** General
|
||||||
Setup general, a good package for defining keys. In this case, I
|
Setup general, a good package for defining keys. In this case, I
|
||||||
generate a new definer for the "LEADER" keys. Leader is bound to
|
generate a new definer for the "LEADER" keys. Leader is bound to
|
||||||
@@ -287,9 +280,6 @@ moment), bind to general some basic binds.
|
|||||||
"h" #'help-command))
|
"h" #'help-command))
|
||||||
#+end_src
|
#+end_src
|
||||||
** Evil
|
** Evil
|
||||||
:PROPERTIES:
|
|
||||||
:HTML_CONTAINER: details
|
|
||||||
:END:
|
|
||||||
Evil (Emacs VI Layer) is a package that brings the Vi experience to
|
Evil (Emacs VI Layer) is a package that brings the Vi experience to
|
||||||
Emacs. Packaged with it by default are:
|
Emacs. Packaged with it by default are:
|
||||||
- The modal system
|
- The modal system
|
||||||
@@ -396,9 +386,6 @@ on setups for specific modes I think benefit from it.
|
|||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
** Completion
|
** Completion
|
||||||
:PROPERTIES:
|
|
||||||
:HTML_CONTAINER: details
|
|
||||||
:END:
|
|
||||||
Emacs is a text based interface. As a text based interface it heavily
|
Emacs is a text based interface. As a text based interface it heavily
|
||||||
leverages searches and user filters to manage input and provide
|
leverages searches and user filters to manage input and provide
|
||||||
functionality. Though the standard model of completion may be
|
functionality. Though the standard model of completion may be
|
||||||
@@ -614,9 +601,6 @@ just setup some evil binds for company.
|
|||||||
"M-k" #'company-select-previous))
|
"M-k" #'company-select-previous))
|
||||||
#+end_src
|
#+end_src
|
||||||
** Pretty symbols
|
** Pretty symbols
|
||||||
:PROPERTIES:
|
|
||||||
:HTML_CONTAINER: details
|
|
||||||
:END:
|
|
||||||
Prettify symbols mode allows for users to declare 'symbols' that
|
Prettify symbols mode allows for users to declare 'symbols' that
|
||||||
replace text within certain modes. For example, you may replace the
|
replace text within certain modes. For example, you may replace the
|
||||||
'for' word in c-mode in trade of the logical symbol for [[https://en.wikipedia.org/wiki/Universal_quantification][universal
|
'for' word in c-mode in trade of the logical symbol for [[https://en.wikipedia.org/wiki/Universal_quantification][universal
|
||||||
@@ -693,9 +677,6 @@ later.
|
|||||||
("lambda" . "λ")
|
("lambda" . "λ")
|
||||||
#+end_example
|
#+end_example
|
||||||
** Window management
|
** Window management
|
||||||
:PROPERTIES:
|
|
||||||
:HTML_CONTAINER: details
|
|
||||||
:END:
|
|
||||||
Window management is really important. I find the default window
|
Window management is really important. I find the default window
|
||||||
handling of Emacs incredibly annoying: sometimes consuming my windows,
|
handling of Emacs incredibly annoying: sometimes consuming my windows,
|
||||||
sometimes creating new ones. Of course, as Emacs is a powerful lisp
|
sometimes creating new ones. Of course, as Emacs is a powerful lisp
|
||||||
@@ -764,9 +745,6 @@ records.
|
|||||||
(window-height . 0.25)))
|
(window-height . 0.25)))
|
||||||
#+end_src
|
#+end_src
|
||||||
** Auto typing
|
** Auto typing
|
||||||
:PROPERTIES:
|
|
||||||
:HTML_CONTAINER: details
|
|
||||||
:END:
|
|
||||||
Snippets are a system by which pieces of code can be inserted via
|
Snippets are a system by which pieces of code can be inserted via
|
||||||
prefixes. For example, an 'if' snippet would work by first inserting
|
prefixes. For example, an 'if' snippet would work by first inserting
|
||||||
the word 'if' then pressing some _expansion key_ such as TAB. This
|
the word 'if' then pressing some _expansion key_ such as TAB. This
|
||||||
@@ -899,7 +877,6 @@ Setup global mode after evil mode has been loaded
|
|||||||
#+end_src
|
#+end_src
|
||||||
** Emacs Mode-line
|
** Emacs Mode-line
|
||||||
:PROPERTIES:
|
:PROPERTIES:
|
||||||
:HTML_CONTAINER: details
|
|
||||||
:header-args:emacs-lisp: :tangle no
|
:header-args:emacs-lisp: :tangle no
|
||||||
:END:
|
:END:
|
||||||
Firstly, declare a variable for the separator between each module
|
Firstly, declare a variable for the separator between each module
|
||||||
@@ -1014,9 +991,6 @@ with colouring and a ton of presentations to choose from.
|
|||||||
(telephone-line-mode))
|
(telephone-line-mode))
|
||||||
#+end_src
|
#+end_src
|
||||||
* Small packages
|
* Small packages
|
||||||
:PROPERTIES:
|
|
||||||
:HTML_CONTAINER: details
|
|
||||||
:END:
|
|
||||||
** ISearch
|
** ISearch
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package isearch
|
(use-package isearch
|
||||||
@@ -1068,9 +1042,6 @@ the projectile command map for quick access.
|
|||||||
(projectile-mode))
|
(projectile-mode))
|
||||||
#+end_src
|
#+end_src
|
||||||
*** Counsel projectile
|
*** Counsel projectile
|
||||||
:PROPERTIES:
|
|
||||||
:header-args:emacs-lisp: :tangle no
|
|
||||||
:END:
|
|
||||||
Counsel projectile provides the ivy interface to projectile commands, which is really useful.
|
Counsel projectile provides the ivy interface to projectile commands, which is really useful.
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package counsel-projectile
|
(use-package counsel-projectile
|
||||||
@@ -1186,9 +1157,6 @@ for exiting insert state. Otherwise, I don't really need it.
|
|||||||
(key-chord-mode +1))
|
(key-chord-mode +1))
|
||||||
#+end_src
|
#+end_src
|
||||||
** (Rip)grep
|
** (Rip)grep
|
||||||
:PROPERTIES:
|
|
||||||
:HTML_CONTAINER: details
|
|
||||||
:END:
|
|
||||||
Grep is likely one of the most important programs ever invented; a
|
Grep is likely one of the most important programs ever invented; a
|
||||||
must-have tool for any Linux users inventory. It is a searching
|
must-have tool for any Linux users inventory. It is a searching
|
||||||
utility that allows one to search files for certain regex patterns.
|
utility that allows one to search files for certain regex patterns.
|
||||||
@@ -1257,9 +1225,6 @@ most repositories nowadays.
|
|||||||
(call-interactively #'rg))))
|
(call-interactively #'rg))))
|
||||||
#+end_src
|
#+end_src
|
||||||
* Applications
|
* Applications
|
||||||
:PROPERTIES:
|
|
||||||
:HTML_CONTAINER: details
|
|
||||||
:END:
|
|
||||||
** Dashboard
|
** Dashboard
|
||||||
Dashboard creates a custom dashboard for Emacs that replaces the
|
Dashboard creates a custom dashboard for Emacs that replaces the
|
||||||
initial startup screen in default Emacs.
|
initial startup screen in default Emacs.
|
||||||
@@ -1335,9 +1300,6 @@ calendar to the kill ring and bind it to "Y".
|
|||||||
(+dx/create-toggle-function +calendar/toggle-calendar "*Calendar*" calendar))
|
(+dx/create-toggle-function +calendar/toggle-calendar "*Calendar*" calendar))
|
||||||
#+end_src
|
#+end_src
|
||||||
** Mail
|
** Mail
|
||||||
:PROPERTIES:
|
|
||||||
:HTML_CONTAINER: details
|
|
||||||
:END:
|
|
||||||
Mail is a funny thing; most people use it just for business or
|
Mail is a funny thing; most people use it just for business or
|
||||||
advertising and it's come out of use in terms of personal
|
advertising and it's come out of use in terms of personal
|
||||||
communication in the west for the most part (largely due to "social"
|
communication in the west for the most part (largely due to "social"
|
||||||
@@ -1399,9 +1361,6 @@ integrate it into my workflow just a bit better.
|
|||||||
message-send-mail-function #'smtpmail-send-it))
|
message-send-mail-function #'smtpmail-send-it))
|
||||||
#+end_src
|
#+end_src
|
||||||
** Dired
|
** Dired
|
||||||
:PROPERTIES:
|
|
||||||
:HTML_CONTAINER: details
|
|
||||||
:END:
|
|
||||||
Setup for dired. Make dired-hide-details-mode the default mode when
|
Setup for dired. Make dired-hide-details-mode the default mode when
|
||||||
using dired-mode, as it removes the clutter. Setup evil collection
|
using dired-mode, as it removes the clutter. Setup evil collection
|
||||||
for dired (even though dired doesn't really conflict with evil, there
|
for dired (even though dired doesn't really conflict with evil, there
|
||||||
@@ -1450,9 +1409,6 @@ thumb, otherwise open the file."
|
|||||||
"i" #'+dired/display-thumb-or-file))
|
"i" #'+dired/display-thumb-or-file))
|
||||||
#+end_src
|
#+end_src
|
||||||
** Xwidget
|
** Xwidget
|
||||||
:PROPERTIES:
|
|
||||||
:HTML_CONTAINER: details
|
|
||||||
:END:
|
|
||||||
Xwidget is a package (must be compiled at source) which allows for the
|
Xwidget is a package (must be compiled at source) which allows for the
|
||||||
insertion of arbitrary xwidgets into Emacs through buffers. One of its
|
insertion of arbitrary xwidgets into Emacs through buffers. One of its
|
||||||
premier uses is in navigating the web which it provides through the
|
premier uses is in navigating the web which it provides through the
|
||||||
@@ -1538,9 +1494,6 @@ xwidget."
|
|||||||
(xwidget-webkit-browse-url (concat "https://" engine "/?q=" query)))))
|
(xwidget-webkit-browse-url (concat "https://" engine "/?q=" query)))))
|
||||||
#+end_src
|
#+end_src
|
||||||
** Eshell
|
** Eshell
|
||||||
:PROPERTIES:
|
|
||||||
:HTML_CONTAINER: details
|
|
||||||
:END:
|
|
||||||
Eshell is the integrated shell environment for Emacs. Though it isn't
|
Eshell is the integrated shell environment for Emacs. Though it isn't
|
||||||
necessarily *the best* shell, it really suits the 'integrated
|
necessarily *the best* shell, it really suits the 'integrated
|
||||||
computing environment' moniker that Emacs gets.
|
computing environment' moniker that Emacs gets.
|
||||||
@@ -1608,9 +1561,6 @@ pretty symbols to eshell.
|
|||||||
eshell))
|
eshell))
|
||||||
#+end_src
|
#+end_src
|
||||||
** Elfeed
|
** Elfeed
|
||||||
:PROPERTIES:
|
|
||||||
:HTML_CONTAINER: details
|
|
||||||
:END:
|
|
||||||
Elfeed is the perfect RSS feed reader, integrated into Emacs
|
Elfeed is the perfect RSS feed reader, integrated into Emacs
|
||||||
perfectly. I've got a set of feeds that I use for a large variety of
|
perfectly. I've got a set of feeds that I use for a large variety of
|
||||||
stuff, mostly media and entertainment. I've also bound "<leader> ar"
|
stuff, mostly media and entertainment. I've also bound "<leader> ar"
|
||||||
@@ -1723,9 +1673,6 @@ don't need to write everything myself.
|
|||||||
(evil-collection-ibuffer-setup)))
|
(evil-collection-ibuffer-setup)))
|
||||||
#+end_src
|
#+end_src
|
||||||
** Processes
|
** Processes
|
||||||
:PROPERTIES:
|
|
||||||
:HTML_CONTAINER: details
|
|
||||||
:END:
|
|
||||||
Emacs has two systems for process management:
|
Emacs has two systems for process management:
|
||||||
+ proced: a general 'top' like interface which allows general
|
+ proced: a general 'top' like interface which allows general
|
||||||
management of linux processes
|
management of linux processes
|
||||||
@@ -1768,9 +1715,6 @@ further filtering of the process list.
|
|||||||
"%" #'proced-narrow))
|
"%" #'proced-narrow))
|
||||||
#+end_src
|
#+end_src
|
||||||
** Calculator
|
** Calculator
|
||||||
:PROPERTIES:
|
|
||||||
:HTML_CONTAINER: details
|
|
||||||
:END:
|
|
||||||
Surprise, surprise Emacs comes with a calculator. At this point there
|
Surprise, surprise Emacs comes with a calculator. At this point there
|
||||||
is little that surprises me in terms of Emacs' amazing capabilities.
|
is little that surprises me in terms of Emacs' amazing capabilities.
|
||||||
|
|
||||||
@@ -1818,14 +1762,8 @@ work for me given the various TeX utilities installed via Arch.
|
|||||||
:after ledger-mode)
|
:after ledger-mode)
|
||||||
#+end_src
|
#+end_src
|
||||||
* Major modes, programming and text
|
* Major modes, programming and text
|
||||||
:PROPERTIES:
|
|
||||||
:HTML_CONTAINER: details
|
|
||||||
:END:
|
|
||||||
Setups for common major modes and languages.
|
Setups for common major modes and languages.
|
||||||
** Text Configuration
|
** Text Configuration
|
||||||
:PROPERTIES:
|
|
||||||
:HTML_CONTAINER: details
|
|
||||||
:END:
|
|
||||||
Standard packages and configurations for the text-mode.
|
Standard packages and configurations for the text-mode.
|
||||||
*** Flyspell
|
*** Flyspell
|
||||||
Flyspell allows me to quickly spell check text documents. I use
|
Flyspell allows me to quickly spell check text documents. I use
|
||||||
@@ -1907,9 +1845,6 @@ Show parenthesis for Emacs
|
|||||||
(add-hook 'prog-mode-hook #'show-paren-mode)
|
(add-hook 'prog-mode-hook #'show-paren-mode)
|
||||||
#+end_src
|
#+end_src
|
||||||
** Programming Configuration
|
** Programming Configuration
|
||||||
:PROPERTIES:
|
|
||||||
:HTML_CONTAINER: details
|
|
||||||
:END:
|
|
||||||
*** Eldoc
|
*** Eldoc
|
||||||
Eldoc presents documentation to the user upon placing ones cursor upon
|
Eldoc presents documentation to the user upon placing ones cursor upon
|
||||||
any symbol. This is very useful when programming as it:
|
any symbol. This is very useful when programming as it:
|
||||||
@@ -2018,9 +1953,6 @@ highlighting.
|
|||||||
("WAIT" . "#00CC00"))))
|
("WAIT" . "#00CC00"))))
|
||||||
#+end_src
|
#+end_src
|
||||||
** PDF
|
** PDF
|
||||||
:PROPERTIES:
|
|
||||||
:HTML_CONTAINER: details
|
|
||||||
:END:
|
|
||||||
PDFs are a great format for (somewhat) immutable text and reports with
|
PDFs are a great format for (somewhat) immutable text and reports with
|
||||||
great formatting options. Though Emacs isn't really the premier
|
great formatting options. Though Emacs isn't really the premier
|
||||||
solution for viewing PDFs (I highly recommend [[https://pwmt.org/projects/zathura/][Zathura]]), similar to
|
solution for viewing PDFs (I highly recommend [[https://pwmt.org/projects/zathura/][Zathura]]), similar to
|
||||||
@@ -2095,13 +2027,7 @@ not to describe them. Check out the [[https://elpa.gnu.org/packages/nhexl-mode.
|
|||||||
:mode "\\.bin")
|
:mode "\\.bin")
|
||||||
#+end_src
|
#+end_src
|
||||||
** Org
|
** Org
|
||||||
:PROPERTIES:
|
|
||||||
:HTML_CONTAINER: details
|
|
||||||
:END:
|
|
||||||
*** Org Core Variables
|
*** Org Core Variables
|
||||||
:PROPERTIES:
|
|
||||||
:HTML_CONTAINER: details
|
|
||||||
:END:
|
|
||||||
Tons of variables for org-mode, including a ton of latex ones.
|
Tons of variables for org-mode, including a ton of latex ones.
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package org
|
(use-package org
|
||||||
@@ -2156,9 +2082,6 @@ Tons of variables for org-mode, including a ton of latex ones.
|
|||||||
)))
|
)))
|
||||||
#+end_src
|
#+end_src
|
||||||
*** Org Core Configuration
|
*** Org Core Configuration
|
||||||
:PROPERTIES:
|
|
||||||
:HTML_CONTAINER: details
|
|
||||||
:END:
|
|
||||||
Hooks, prettify-symbols and my =+org/swiper-goto= to replace the
|
Hooks, prettify-symbols and my =+org/swiper-goto= to replace the
|
||||||
vanilla =org-goto=. Also records for auto insertion.
|
vanilla =org-goto=. Also records for auto insertion.
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
@@ -2242,9 +2165,6 @@ reveal.js. Pretty nifty and it's easy to use.
|
|||||||
org-reveal-theme "sky"))
|
org-reveal-theme "sky"))
|
||||||
#+end_src
|
#+end_src
|
||||||
*** Org fragtog
|
*** Org fragtog
|
||||||
:PROPERTIES:
|
|
||||||
:header-args:emacs-lisp: :tangle no
|
|
||||||
:END:
|
|
||||||
Toggle latex fragments in org mode so you get fancy maths symbols. I
|
Toggle latex fragments in org mode so you get fancy maths symbols. I
|
||||||
use latex a bit in org mode as it is the premier way of getting
|
use latex a bit in org mode as it is the premier way of getting
|
||||||
mathematical symbols and text rendered and compiled, but org mode >
|
mathematical symbols and text rendered and compiled, but org mode >
|
||||||
@@ -2270,9 +2190,6 @@ better than the default asterisks.
|
|||||||
:hook (org-mode-hook . org-superstar-mode))
|
:hook (org-mode-hook . org-superstar-mode))
|
||||||
#+end_src
|
#+end_src
|
||||||
** C/C++
|
** C/C++
|
||||||
:PROPERTIES:
|
|
||||||
:HTML_CONTAINER: details
|
|
||||||
:END:
|
|
||||||
Setup for C and C++ modes via the cc-mode package.
|
Setup for C and C++ modes via the cc-mode package.
|
||||||
C and C++ are great languages for general purpose programming. Though
|
C and C++ are great languages for general purpose programming. Though
|
||||||
lisp is more aesthetically and mentally pleasing, they get the job
|
lisp is more aesthetically and mentally pleasing, they get the job
|
||||||
@@ -2453,9 +2370,6 @@ book so it's useful to have some Emacs binds for it.
|
|||||||
("return" . "⟼")))
|
("return" . "⟼")))
|
||||||
#+end_src
|
#+end_src
|
||||||
** Java
|
** Java
|
||||||
:PROPERTIES:
|
|
||||||
:HTML_CONTAINER: details
|
|
||||||
:END:
|
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package ob-java
|
(use-package ob-java
|
||||||
:straight nil
|
:straight nil
|
||||||
@@ -2617,9 +2531,6 @@ Then emmet for super speed
|
|||||||
(use-package typescript-mode)
|
(use-package typescript-mode)
|
||||||
#+end_src
|
#+end_src
|
||||||
** Emacs lisp
|
** Emacs lisp
|
||||||
:PROPERTIES:
|
|
||||||
:HTML_CONTAINER: details
|
|
||||||
:END:
|
|
||||||
Add a new lisp indent function which indents newline lists more
|
Add a new lisp indent function which indents newline lists more
|
||||||
appropriately.
|
appropriately.
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
|
|||||||
Reference in New Issue
Block a user