Emacs



Dired

wildcard

C-x d ~/**/*/*.el RET

Deleteing files with Dired

C-x d # open dired
d # flag files for deletion
u # remove the deletion flag
x # delete flagged files
yes # confirm
no # cacel
C-g # quit

Visiting Files in Dired

Mark

Operating on marked Files

read more: https://www.gnu.org/software/emacs/manual/html_node/emacs/Operating-on-Files.html

Subdirectories in Dired

Bindings

LaTex

Install texlive-most{.verbatim}

sudo pamman -S texlive-most

Bindings

Examples

Display inline $E=mc^2${.verbatim}: $E=mc^2$

#+BEGIN_LaTeX latex
\begin{aligned}
T_{1}(n) & = 2T_{1}(\frac{n}{2}) + c_{1}n \\
& = 2[2T_{1}(\frac{n}{2^{2}}) + c_{1}\frac{n}{2}] + c_{1}n \\
& = 2^{2}T_{1}(\frac{n}{2^{2}}) + 2c_{1}n \\
& ...\\
& = 2^{L}T_{1}(\frac{n}{2^{L}}) + Lc_{1}n \\
n & = 2^{L} \\
L & = log_{2}n \\
=> T_{1}(n) & = nT_{1}(1) + c_{1}.n.log_{2}{n} \\
T_{1}(n) & = \Omega(nlog_{2}{n}) \\
\end{aligned}
#+END_LaTex latex
\begin{aligned}
T_{1}(n) & = 2T_{1}(\frac{n}{2}) + c_{1}n \\
& = 2[2T_{1}(\frac{n}{2^{2}}) + c_{1}\frac{n}{2}] + c_{1}n \\
& = 2^{2}T_{1}(\frac{n}{2^{2}}) + 2c_{1}n \\
& ...\\
& = 2^{L}T_{1}(\frac{n}{2^{L}}) + Lc_{1}n \\
n & = 2^{L} \\
L & = log_{2}n \\
=> T_{1}(n) & = nT_{1}(1) + c_{1}.n.log_{2}{n} \\
T_{1}(n) & = \Omega(nlog_{2}{n}) \\
\end{aligned}

latex

greek


$\alpha$ \alpha{.verbatim} $\beta$ \beta{.verbatim} $\gamma$ \gamma{.verbatim} $\delta$ \delta{.verbatim} $\theta$ \theta{.verbatim} $\Theta$ \Theta{.verbatim} $\omega$ \omega{.verbatim} $\Omega$ \Omega{.verbatim}


ref

Table

ref

How-to

How to create a directory?

https://stackoverflow.com/questions/155507/how-do-i-create-a-directory-from-within-emacs

M-x make-directory{.verbatim}

M-x make-directory RET dir/to/create RET

M-! mkdir{.verbatim} call shell command mkdir{.verbatim}

M-! mkdir -p dir/parent{1,2}/node RET

Dired{.verbatim} mode, press +{.verbatim}

+

C-x C-f - find-file{.verbatim}

C-x C-f dir/to/create/with-file
M-x make-directory RET RET # Create directory 'dir/to/create' if not exists

How to quickly copy/move files

How to open files externally in Emacs dired mode?

https://stackoverflow.com/questions/6845005/how-can-i-open-files-externally-in-emacs-dired-mode Yes. Use !{.verbatim} while in dired to run a shell command on a file.

:!

BookMarks

https://www.emacswiki.org/emacs/BookMarks

EmacsClient

emacsclient --create-frame --alternate-editor=""

The emacsclient program will connect to a running instance of Emacs if it exists. -c tells Emacs to open the file in a new frame, which is optional. Specifying -a="" tells emacsclient to start an instance of emacs if it cannot find one already running.

Ref