From f524bbd3d1ca471bc441e5b0e0211c2a12753131 Mon Sep 17 00:00:00 2001 From: jgrogan Date: Fri, 7 Jun 2024 12:22:39 +0100 Subject: [PATCH] Add some emacs markdown and org mode commands. --- doc/emacs_notes.md | 26 ++++++++++++++++++++++++++ doc/test.tex | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 72 insertions(+) create mode 100644 doc/test.tex diff --git a/doc/emacs_notes.md b/doc/emacs_notes.md index 55a65dd..6466b68 100644 --- a/doc/emacs_notes.md +++ b/doc/emacs_notes.md @@ -1,3 +1,4 @@ + # Emacs ## Base @@ -10,6 +11,13 @@ [Module Reference](http://www.mplayerhq.hu/design7/news.html) * `C-c C-s 1`: Insert level one heading with hash delimiter. +* `C-c C-c p`: Show preview in browser. +* `C-c C-x l`: Toggle url hiding +* `C-c C-x i`: Toggle inline images +* `C-c C-x m`: Toggle markdown visibility +* `S-Tab`: Toggle global visibility +* `TAB`: Toggle local header visibility + ## Evil @@ -17,8 +25,10 @@ * `CTRL- {D, U, F, B}`: Scroll down/up by half or full page * `zt zz zb`: Scroll current line to top, centre, bottom +* `0 $`: Move to beginning or end of line * `{ }`: Move to beginning or end of paragraph * `h l j k`: Character left, right, up, down +* `y p`: Yank (copy) or paste ## Magit @@ -31,3 +41,19 @@ * `P`: Start a push * `u`: Push to origin +## Auctex + +## Org Mode ## + +https://orgmode.org/worg/org-tutorials/org4beginners.html + +* `TAB/S-TAB`: Fold/Unfold +* `M-up/down`: move headline up/down +* `M-left/right`: promote or demote headline +* `M-RET`: add new headline + +## Treemacs ## + +https://github.com/Alexander-Miller/treemacs + +* `C-c C-w s`: Switch workspace diff --git a/doc/test.tex b/doc/test.tex new file mode 100644 index 0000000..0888261 --- /dev/null +++ b/doc/test.tex @@ -0,0 +1,46 @@ +\documentclass[12pt]{article} +\usepackage{lingmacros} +\usepackage{tree-dvips} +\begin{document} + +\section*{Notes for My Paper} + +Don't forget to include examples of topicalization. +They look like this: + +{\small +\enumsentence{Topicalization from sentential subject:\\ +\shortex{7}{a John$_i$ [a & kltukl & [el & + {\bf l-}oltoir & er & ngii$_i$ & a Mary]]} +{ & {\bf R-}clear & {\sc comp} & + {\bf IR}.{\sc 3s}-love & P & him & } +{John, (it's) clear that Mary loves (him).}} +} + +\subsection*{How to handle topicalization} + +I'll just assume a tree structure like (\ex{1}). + +{\small +\enumsentence{Structure of A$'$ Projections:\\ [2ex] +\begin{tabular}[t]{cccc} + & \node{i}{CP}\\ [2ex] + \node{ii}{Spec} & &\node{iii}{C$'$}\\ [2ex] + &\node{iv}{C} & & \node{v}{SAgrP} +\end{tabular} +\nodeconnect{i}{ii} +\nodeconnect{i}{iii} +\nodeconnect{iii}{iv} +\nodeconnect{iii}{v} +} +} + +\subsection*{Mood} + +Mood changes when there is a topic, as well as when +there is WH-movement. \emph{Irrealis} is the mood when +there is a non-subject topic or WH-phrase in Comp. +\emph{Realis} is the mood when there is a subject topic +or WH-phrase. + +\end{document}