Merge branch 'master'

This commit is contained in:
2021-03-05 17:33:09 +01:00
9 changed files with 2462 additions and 144 deletions

269
README.md
View File

@@ -1,32 +1,40 @@
# Table of Contents
1. [Requirements](#orgcb9390d)
2. [Installation](#orgf9a7dd2)
3. [Key bindings and functions](#org4741345)
4. [Packages](#org62b82b1)
5. [Information](#orgc744d51)
6. [Errors](#org27051a8)
1. [failed execution of bibtex2html](#orga0059df)
1. [Requirements](#requirements)
2. [Installation](#installation)
3. [Packages](#packages)
1. [Org](#org)
2. [Multiple cursors](#multiple-cursors)
3. [Other packages](#other-packages)
4. [Information](#information)
5. [Errors](#errors)
6. [TODOs](#todos)
This is an ongoing evolution of Emacs configuration files, inspired by
a bunch of online resources.
<a id="orgcb9390d"></a>
<a id="requirements"></a>
# Requirements
external packages:
# flyspell-buffer
yay -S aspell hunspell
# org-mode latex-mode
yay -S biber bibtex2html
# fonts (opensans in latex article preamble)
yay -S ttf-inconsolata ttf-opensans
# spelling flyspell-buffer
yay -S aspell aspell-de aspell-en \
hunspell hunspell-de hunspell-en_US \
languagetool
# org-mode latex-mode ox-latex
yay -S biber bibtex2html texlive-bibtexextra texlive-core \
texlive-fontsextra texlive-formatsextra texlive-langgreek \
texlive-langjapanese texlive-latexextra texlive-pgf-pie \
texlive-pgfopts texlive-pictures texlive-pstricks \
texlive-publishers texlive-science texlive-slashbox
# ledger-mode
yay -S ledger
# langtool
yay -S languagetool
# python-mode
yay -S python-pylint
# emacs-application-famework EAF
@@ -34,11 +42,13 @@ external packages:
python-pyqt5 python-pyqt5-sip python-pyqtwebengine python-qrcode \
python-feedparser python-dbus python-pyinotify python-markdown \
python-grip filebrowser-bin python-epc
# other
yay -S ditaa plantuml r
Optional package for EAF see in Installation.
<a id="orgf9a7dd2"></a>
<a id="installation"></a>
# Installation
@@ -52,7 +62,8 @@ or copy all files of this directory into your ~/.config/emacs directory
- `ln -s ~/.config/emacs/init ~/.emacs` (or `~/.emacs.el`,
`~/.emacs.d/init.el`)
copy/merge the texmf directory into your home directory
LaTeX sytling files: copy/merge the `texmf` directory into your home
directory `~/texmf`
optional for EAF
@@ -66,12 +77,12 @@ edit `PGKBUILD` file for `python-pymupdf` to:
}
<a id="org4741345"></a>
<a id="packages"></a>
# Key bindings and functions
# Packages
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<caption class="t-above"><span class="table-number">Table 1:</span> General</caption>
<caption class="t-above"><span class="table-number">Table 1:</span> General key bindings and functions</caption>
<colgroup>
<col class="org-left" />
@@ -142,11 +153,79 @@ edit `PGKBUILD` file for `python-pymupdf` to:
<td class="org-left">counsel-describe-funtion</td>
<td class="org-left">help text of function</td>
</tr>
<tr>
<td class="org-left">C-r</td>
<td class="org-left">query-replace-regexp</td>
<td class="org-left">replace text. (former isearch-backward)</td>
</tr>
<tr>
<td class="org-left">C-x C-b</td>
<td class="org-left">ibuffer</td>
<td class="org-left">list buffers (former list-buffers)</td>
</tr>
<tr>
<td class="org-left">C-x &vert;</td>
<td class="org-left">toggle-window-split</td>
<td class="org-left">toggle horizontal/vertical 2 window split</td>
</tr>
<tr>
<td class="org-left">M-up</td>
<td class="org-left">move-line-up</td>
<td class="org-left">move current line up</td>
</tr>
<tr>
<td class="org-left">M-down</td>
<td class="org-left">move-line-down</td>
<td class="org-left">move current line down</td>
</tr>
<tr>
<td class="org-left">mouse-6</td>
<td class="org-left">&#xa0;</td>
<td class="org-left">scroll right</td>
</tr>
<tr>
<td class="org-left">mouse-7</td>
<td class="org-left">&#xa0;</td>
<td class="org-left">scroll left</td>
</tr>
<tr>
<td class="org-left">mouse-8</td>
<td class="org-left">previous-buffer</td>
<td class="org-left">&#xa0;</td>
</tr>
<tr>
<td class="org-left">mouse-9</td>
<td class="org-left">next-buffer</td>
<td class="org-left">&#xa0;</td>
</tr>
</tbody>
</table>
<a id="org"></a>
## Org
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<caption class="t-above"><span class="table-number">Table 2:</span> Org</caption>
<caption class="t-above"><span class="table-number">Table 2:</span> Org key bindings and functions</caption>
<colgroup>
<col class="org-left" />
@@ -252,79 +331,18 @@ edit `PGKBUILD` file for `python-pymupdf` to:
<td class="org-left">org-babel-tangle</td>
<td class="org-left">create a file with the content of the block, use in header: :tangle filename</td>
</tr>
</tbody>
</table>
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<caption class="t-above"><span class="table-number">Table 3:</span> Custom and changed keys</caption>
<colgroup>
<col class="org-left" />
<col class="org-left" />
<col class="org-left" />
</colgroup>
<tbody>
<tr>
<td class="org-left">C-r</td>
<td class="org-left">query-replace-regexp</td>
<td class="org-left">replace text. (former isearch-backward)</td>
</tr>
<tr>
<td class="org-left">C-x C-b</td>
<td class="org-left">ibuffer</td>
<td class="org-left">list buffers (former list-buffers)</td>
</tr>
<tr>
<td class="org-left">C-x &vert;</td>
<td class="org-left">toggle-window-split</td>
<td class="org-left">toggle horizontal/vertical 2 window split</td>
</tr>
<tr>
<td class="org-left">M-up</td>
<td class="org-left">move-line-up</td>
<td class="org-left">move current line up</td>
</tr>
<tr>
<td class="org-left">M-down</td>
<td class="org-left">move-line-down</td>
<td class="org-left">move current line down</td>
</tr>
<tr>
<td class="org-left">mouse-6</td>
<td class="org-left">&#xa0;</td>
<td class="org-left">scroll right</td>
</tr>
<tr>
<td class="org-left">mouse-7</td>
<td class="org-left">&#xa0;</td>
<td class="org-left">scroll left</td>
</tr>
<tr>
<td class="org-left">mouse-8</td>
<td class="org-left">previous-buffer</td>
<td class="org-left">&#xa0;</td>
</tr>
<tr>
<td class="org-left">mouse-9</td>
<td class="org-left">next-buffer</td>
<td class="org-left">Org export</td>
<td class="org-left">&#xa0;</td>
<td class="org-left">&#xa0;</td>
</tr>
@@ -344,8 +362,28 @@ edit `PGKBUILD` file for `python-pymupdf` to:
</tbody>
</table>
**Important**
- For **Gnuplot** source blocks: Do not use `%` inside Gnuplot source
block but `\%` or in format command `\%%`
- % starts a comment in LaTeX and therefore stops further
interpretations like a closing bracket `}` etc.
- Gnuplot graphics are imported as .tex (text, axis, legend) and
.eps (figure) files.
- `\%` `\%%` can also be used for HTML SVG export
Links
- <https://tex.stackexchange.com/questions/167583/include-custom-file-into-header-with-org-mode/201674>
- <https://orgmode.org/manual/LaTeX-specific-export-settings.html>
<a id="multiple-cursors"></a>
## Multiple cursors
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<caption class="t-above"><span class="table-number">Table 4:</span> Multiple cursors</caption>
<caption class="t-above"><span class="table-number">Table 3:</span> Multiple cursors key bindings and functions</caption>
<colgroup>
<col class="org-left" />
@@ -385,16 +423,16 @@ edit `PGKBUILD` file for `python-pymupdf` to:
</table>
<a id="org62b82b1"></a>
<a id="other-packages"></a>
# Packages
## Other packages
- **rainbow-mode.el:** <https://elpa.gnu.org/packages/rainbow-mode.html>
rainbow-mode is a minor mode for Emacs which displays strings representing
colors with the color they represent as background.
<a id="orgc744d51"></a>
<a id="information"></a>
# Information
@@ -404,18 +442,61 @@ but interlocks to prevent the simultaneous editing of the same
file. See [Interlocking](https://www.emacswiki.org/info-ref?find=Interlocking) in the [EmacsManual](https://www.emacswiki.org/emacs/EmacsManual) for details.
<a id="org27051a8"></a>
<a id="errors"></a>
# Errors
- failed execution of bibtex2html
- see bib2htmlxxxxxx.blg for errors, e.g.
- I couldn&rsquo;t open style file acmu.bst
- copy/merge the texmf directory into your home directory.
- when using this in an Org mode buffer:
`#+HEADER: :fit yes :imagemagick yes :iminoptions -density 300`
- can leads to:
- ``convert: attempt to perform an operation not allowed by the security policy `gs' @ error/delegate.c/ExternalDelegateCommand/378.``
- ``convert: no images defined `DESY_logo_tikz.png' @ error/convert.c/ConvertImageCommand/3282.``
- edit `/etc/ImageMagick-7/policy.xml` and comment out
- `<policy domain="delegate" rights="none" pattern="gs" />`
<a id="orga0059df"></a>
## failed execution of bibtex2html
<a id="todos"></a>
see bib2htmlxxxxxx.blg for errors, e.g.
# TODOs
- I couldn&rsquo;t open style file acmu.bst
copy/merge the texmf directory into your home directory.
- Org / global configuration
- Page formatting
- Modify HTML styling
- Printed page layout, white styled figures
- Custom export function for HTML and \(\LaTeX\), with;
- `Shift` - `<f5>`, `Shift` - `<f6>` with open file
- delete temp. generated export files
- Figures
- Gnuplot
- plot transposed files/tables
- preamble in function and call this function for every gnuplot block either
manually or automatically with a hook?!
- Tables
- Wrap Table in div element. For smartphone scrolling.
- Table of contents
- \(\LaTeX\); currently headers with no-number property means not included in TOC
- HTML; currently generated list, like lot and lol, are not included in toc
but own headers without numbers are.
- Equation cancel/strike out with color line
- hcancel[color]{}
- Example: `\(\hcancel[red]{f_{X_2}(x_2)}}\)`
- Definition:
- Preamle: `#+LATEX_HEADER: \usepackage{cancel}`
`#+LATEX_HEADER: \newcommand\hcancel[2][black]{\setbox0=\hbox{$#2$}%`
`#+LATEX_HEADER: \rlap{\raisebox{.45\ht0}{\textcolor{#1}{\rule{\wd0}{1pt}}}}#2}`
- `hcancel: [\"{\\\\setbox0=\\\\hbox{$#2$}\\\\rlap{\\\\raisebox{.45\\\\ht0}{\\\\textcolor{#1}{\\\\rule{\\\\wd0}{1pt}}}}#2}\",2]`
MathJax.Ajax.config.path[\"Contrib\"] = \"https://cdn.mathjax.org/mathjax/contrib\";
MathJax.Hub.Register.StartupHook(\"TeX Jax Ready\",function () {
MathJax.Hub.Insert(MathJax.InputJax.TeX.Definitions.macros,{
cancel: [\"Extension\",\"cancel\"],
bcancel: [\"Extension\",\"cancel\"],
xcancel: [\"Extension\",\"cancel\"],
cancelto: [\"Extension\",\"cancel\"]
});
});

View File

@@ -6,16 +6,25 @@ This is an ongoing evolution of Emacs configuration files, inspired by
a bunch of online resources.
* Requirements
:PROPERTIES:
:CUSTOM_ID: requirements
:END:
external packages:
#+begin_src shell
# flyspell-buffer
yay -S aspell hunspell
# org-mode latex-mode
yay -S biber bibtex2html
# fonts (opensans in latex article preamble)
yay -S ttf-inconsolata ttf-opensans
# spelling flyspell-buffer
yay -S aspell aspell-de aspell-en \
hunspell hunspell-de hunspell-en_US \
languagetool
# org-mode latex-mode ox-latex
yay -S biber bibtex2html texlive-bibtexextra texlive-core \
texlive-fontsextra texlive-formatsextra texlive-langgreek \
texlive-langjapanese texlive-latexextra texlive-pgf-pie \
texlive-pgfopts texlive-pictures texlive-pstricks \
texlive-publishers texlive-science texlive-slashbox
# ledger-mode
yay -S ledger
# langtool
yay -S languagetool
# python-mode
yay -S python-pylint
# emacs-application-famework EAF
@@ -23,10 +32,15 @@ a bunch of online resources.
python-pyqt5 python-pyqt5-sip python-pyqtwebengine python-qrcode \
python-feedparser python-dbus python-pyinotify python-markdown \
python-grip filebrowser-bin python-epc
# other
yay -S ditaa plantuml r
#+end_src
Optional package for EAF see in Installation.
* Installation
:PROPERTIES:
:CUSTOM_ID: installation
:END:
Install into =~/.config/emacs= (must be empty)
#+begin_src sh
git clone http://gogs.weseng.de/daniel/emacs.git ~/.config/emacs
@@ -39,7 +53,8 @@ a bunch of online resources.
- =ln -s ~/.config/emacs/init ~/.emacs= (or =~/.emacs.el=,
=~/.emacs.d/init.el=)
copy/merge the texmf directory into your home directory
LaTeX sytling files: copy/merge the =texmf= directory into your home
directory =~/texmf=
optional for EAF
#+begin_src shell
@@ -54,19 +69,35 @@ a bunch of online resources.
}
#+end_example
* Key bindings and functions
#+caption: General
| M-> | end-of-buffer | |
| M-< | beginning-of-buffer | |
| C-x h | mark-whole-buffer | mark the whole buffer |
| C-x TAB | indent-rigidly | indent selected region |
| C-x RET f | set-buffer-file-coding-system | e. g. set to utf-8 |
| | decode-coding-region | e. g. decode to utf-8 (郭富城Aaron Kwok) |
| | diff-buffer-with-file | show a diff between buffer and file |
| C-h v | counsel-describe-variable | help text of variable |
| C-h f | counsel-describe-funtion | help text of function |
* Packages
:PROPERTIES:
:CUSTOM_ID: packages
:END:
#+caption: General key bindings and functions
| M-> | end-of-buffer | |
| M-< | beginning-of-buffer | |
| C-x h | mark-whole-buffer | mark the whole buffer |
| C-x TAB | indent-rigidly | indent selected region |
| C-x RET f | set-buffer-file-coding-system | e. g. set to utf-8 |
| | decode-coding-region | e. g. decode to utf-8 (郭富城Aaron Kwok) |
| | diff-buffer-with-file | show a diff between buffer and file |
| C-h v | counsel-describe-variable | help text of variable |
| C-h f | counsel-describe-funtion | help text of function |
| C-r | query-replace-regexp | replace text. (former isearch-backward) |
| C-x C-b | ibuffer | list buffers (former list-buffers) |
| C-x \vert | toggle-window-split | toggle horizontal/vertical 2 window split |
| M-up | move-line-up | move current line up |
| M-down | move-line-down | move current line down |
| mouse-6 | | scroll right |
| mouse-7 | | scroll left |
| mouse-8 | previous-buffer | |
| mouse-9 | next-buffer | |
#+caption: Org
** Org
:PROPERTIES:
:CUSTOM_ID: org
:END:
#+caption: Org key bindings and functions
| C-c \vert | org-table-create-or-convert-from-region | convert seperator 1. TAB, 2. comma, 3. space |
| C-u C-c \vert | org-table-create-or-convert-from-region | convert using comma (CSV) seperator |
| C-u C-u C-c \vert | org-table-create-or-convert-from-region | convert using TAB |
@@ -81,39 +112,105 @@ a bunch of online resources.
| | | |
| Org src block | | |
| C-c C-v t | org-babel-tangle | create a file with the content of the block, use in header: :tangle filename |
| | | |
| Org export | | |
| f5 | | in org export to html |
| f6 | | in org export to LaTeX |
#+caption: Custom and changed keys
| C-r | query-replace-regexp | replace text. (former isearch-backward) |
| C-x C-b | ibuffer | list buffers (former list-buffers) |
| C-x \vert | toggle-window-split | toggle horizontal/vertical 2 window split |
| M-up | move-line-up | move current line up |
| M-down | move-line-down | move current line down |
| mouse-6 | | scroll right |
| mouse-7 | | scroll left |
| mouse-8 | previous-buffer | |
| mouse-9 | next-buffer | |
| f5 | | in org export to html |
| f6 | | in org export to LaTeX |
*Important*
- For *Gnuplot* source blocks: Do not use =%= inside Gnuplot source
block but =\%= or in format command =\%%=
- % starts a comment in LaTeX and therefore stops further
interpretations like a closing bracket =}= etc.
- Gnuplot graphics are imported as .tex (text, axis, legend) and
.eps (figure) files.
- =\%= =\%%= can also be used for HTML SVG export
#+caption: Multiple cursors
Links
- https://tex.stackexchange.com/questions/167583/include-custom-file-into-header-with-org-mode/201674
- https://orgmode.org/manual/LaTeX-specific-export-settings.html
** Multiple cursors
:PROPERTIES:
:CUSTOM_ID: multiple-cursors
:END:
#+caption: Multiple cursors key bindings and functions
| M-m s m a | mc/mark-all-dwim | try to mark all at point |
| C-v | | jump to next cursor |
| M-v | | jump to previous cursor |
| C-' | | hide/unhide lines without a cursor |
* Packages
** Other packages
:PROPERTIES:
:CUSTOM_ID: other-packages
:END:
- rainbow-mode.el :: https://elpa.gnu.org/packages/rainbow-mode.html
rainbow-mode is a minor mode for Emacs which displays strings representing
colors with the color they represent as background.
* Information
:PROPERTIES:
:CUSTOM_ID: information
:END:
Interlock symlinks and auto-save files.
Be aware that symbolic links of the form “.#*” are not auto-save files
but interlocks to prevent the simultaneous editing of the same
file. See [[https://www.emacswiki.org/info-ref?find=Interlocking][Interlocking]] in the [[https://www.emacswiki.org/emacs/EmacsManual][EmacsManual]] for details.
* Errors
** failed execution of bibtex2html
see bib2htmlxxxxxx.blg for errors, e.g.
- I couldn't open style file acmu.bst
copy/merge the texmf directory into your home directory.
:PROPERTIES:
:CUSTOM_ID: errors
:END:
- failed execution of bibtex2html
- see bib2htmlxxxxxx.blg for errors, e.g.
- I couldn't open style file acmu.bst
- copy/merge the texmf directory into your home directory.
- when using this in an Org mode buffer:
=#+HEADER: :fit yes :imagemagick yes :iminoptions -density 300=
- can leads to:
- =convert: attempt to perform an operation not allowed by the security policy `gs' @ error/delegate.c/ExternalDelegateCommand/378.=
- =convert: no images defined `DESY_logo_tikz.png' @ error/convert.c/ConvertImageCommand/3282.=
- edit =/etc/ImageMagick-7/policy.xml= and comment out
- ~<policy domain="delegate" rights="none" pattern="gs" />~
* TODOs
:PROPERTIES:
:CUSTOM_ID: todos
:END:
- Org / global configuration
- Page formatting
- Modify HTML styling
- Printed page layout, white styled figures
- Custom export function for HTML and \(\LaTeX\), with;
- =Shift= - =<f5>=, =Shift= - =<f6>= with open file
- delete temp. generated export files
- Figures
- Gnuplot
- plot transposed files/tables
- preamble in function and call this function for every gnuplot block either
manually or automatically with a hook?!
- Tables
- Wrap Table in div element. For smartphone scrolling.
- Table of contents
- \(\LaTeX\); currently headers with no-number property means not included in TOC
- HTML; currently generated list, like lot and lol, are not included in toc
but own headers without numbers are.
- Equation cancel/strike out with color line
- hcancel[color]{}
- Example: ~\(\hcancel[red]{f_{X_2}(x_2)}}\)~
- Definition:
- Preamle: ~#+LATEX_HEADER: \usepackage{cancel}~ \\
~#+LATEX_HEADER: \newcommand\hcancel[2][black]{\setbox0=\hbox{$#2$}%~ \\
~#+LATEX_HEADER: \rlap{\raisebox{.45\ht0}{\textcolor{#1}{\rule{\wd0}{1pt}}}}#2}~ \\
- ~hcancel: [\"{\\\\setbox0=\\\\hbox{$#2$}\\\\rlap{\\\\raisebox{.45\\\\ht0}{\\\\textcolor{#1}{\\\\rule{\\\\wd0}{1pt}}}}#2}\",2]~
#+Begin_example
MathJax.Ajax.config.path[\"Contrib\"] = \"https://cdn.mathjax.org/mathjax/contrib\";
MathJax.Hub.Register.StartupHook(\"TeX Jax Ready\",function () {
MathJax.Hub.Insert(MathJax.InputJax.TeX.Definitions.macros,{
cancel: [\"Extension\",\"cancel\"],
bcancel: [\"Extension\",\"cancel\"],
xcancel: [\"Extension\",\"cancel\"],
cancelto: [\"Extension\",\"cancel\"]
});
});
#+End_example

2114
lisp/my/my-org-article.el Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -86,14 +86,16 @@
(org-export-define-derived-backend 'letter-latex 'latex
:menu-entry
'(?L "Export to LaTeX (Letter)"
((?L "As LaTeX buffer" my-org-letter-latex-export-as-latex)
(?l "As LaTeX file" my-org-letter-latex-export-to-latex)
(?p "As PDF file" my-org-letter-latex-export-to-pdf)
(?o "As PDF file and open"
'(?l ?l
(
;;(?T "As LaTeX buffer" my-org-letter-latex-export-as-latex)
;;(?t "As LaTeX file" my-org-letter-latex-export-to-latex)
(?t "As PDF-letter file" my-org-letter-latex-export-to-pdf)
(?T "As PDF-letter file and open"
(lambda (a s v b)
(if a (my-org-letter-latex-export-to-pdf t s v b)
(org-open-file (my-org-letter-latex-export-to-pdf nil s v b)))))))
:options-alist
'((:with-toc nil "toc" my-org-letter-export-with-toc)
(:latex-class "LATEX_CLASS" nil my-org-letter-latex-default-class t)

View File

@@ -163,18 +163,14 @@ already exists in the home directory."
but it's REALLY SLOW when you have buffers that are visiting
remote files. And despite its documentation, it does NOT ignore
those files, if you're using windows, and the file name begins
with a drive letter and a colon.")
)
(setq global-auto-revert-non-file-buffers t)
)
)
with a drive letter and a colon."))
(setq global-auto-revert-non-file-buffers t)))
(setq revert-without-query '(".*"))
(use-package uniquify
:defer t
:config
(setq uniquify-buffer-name-style 'forward) ;; forward: bar/mumble/name insead of post-forward-angle-brackets: name<bar/mumble>
)
(setq uniquify-buffer-name-style 'forward)) ;; forward: bar/mumble/name insead of post-forward-angle-brackets: name<bar/mumble>
;; overwrite selected text
(delete-selection-mode t)
@@ -228,6 +224,16 @@ with a drive letter and a colon.")
;; gravatars from magit use this to store their cache
(setq url-configuration-directory (concat user-cache-directory "url/"))
;; https://adam.kruszewski.name/2017/09/emacs-in-wsl-and-opening-links/
;; For WSL open links in Windows web browser of choice
(when running-on-windows-wsl
(let ((cmd-exe "/mnt/c/Windows/System32/cmd.exe")
(cmd-args '("/c" "start")))
(when (file-exists-p cmd-exe)
(setq browse-url-generic-program cmd-exe
browse-url-generic-args cmd-args
browse-url-browser-function 'browse-url-generic))))
(setq bookmark-default-file (concat user-cache-directory "bookmarks"))
(use-package transient

View File

@@ -449,7 +449,9 @@ See also `dashboard-insert-section'."
:custom-face (focus-unfocused ((t :inherit shadow))))
(use-package iscroll
:hook ((special-mode text-mode) . iscroll-mode))
:commands iscroll-mode
;; :hook ((special-mode text-mode) . iscroll-mode)
)
(use-package virtual-auto-fill
:delight (virtual-auto-fill-mode "Ⓥf")

View File

@@ -8,6 +8,10 @@
(add-hook 'org-mode-hook 'my-org-link-color-hook)
(add-hook 'org-ctrl-c-ctrl-c-hook 'my-org-table-cell-color-attr)))
(use-package my-org-article
:load-path "lisp/my"
:after (org))
(use-package my-org-letter
:load-path "lisp/my"
:after (org))

View File

@@ -9,6 +9,8 @@
;; https://tex.stackexchange.com/questions/282448/why-does-emacs-or-auctex-turns-into
;;; Commentary:
;; `org-export-default-language'
;; `org-options-keywords'
;; * Overview of modes and commands
;; --------------------------------
@@ -240,8 +242,10 @@ Example defines
:init
(setq org-export-backends '(ascii html icalendar latex md odt reveal tufte))
:config
(setq org-startup-folded nil) ;; nil = showall = #+STARTUP: showall
(setq org-startup-with-inline-images t) ;; #+STARTUP: inlineimages|noinlineimages, show inline images when loading a new Org file
(setq org-image-actual-width '(600)) ;; image width displayed in org
(setq org-tag-persistent-alist '(("ignore" . "i") ("noexport" . "n")))
;; todo see also org-todo-keyword-faces and org-superstar-todo-bullet-alist
(setq org-todo-keywords ;; (x!) record a time stamp, (x@) add a note (with time), (y/z) entering the state / leaving the state
'((sequence "TODO(t)" "WAIT(w)" "|" "DONE(d)" "CANC(c)")))

View File

@@ -41,6 +41,14 @@
(memq system-type '(windows-nt cygwin32 cygwin))
"Non-nil if and only if we're running on Windows.
Both Win32 and Cygwin count.")
;; https://stackoverflow.com/questions/60922620/shell-script-to-check-if-running-in-windows-when-using-wsl
(defvar running-on-windows-wsl
(string-equal
(replace-regexp-in-string
"[ \n]+$" ""
(shell-command-to-string
"uname -a | sed -n 's/.*\\( *Microsoft *\\).*/\\1/ip'"))
"Microsoft"))
(setq user-emacs-directory "~/.config/emacs/")
(defconst user-cache-directory
(file-name-as-directory (concat user-emacs-directory ".cache"))