From 7d457f2f6de5f15ce52e48978dd4b9944aa56033 Mon Sep 17 00:00:00 2001 From: traumschule Date: Fri, 25 Jan 2019 23:53:14 -0800 Subject: [PATCH 1/3] emacs.org: fix typo --- emacs.org | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/emacs.org b/emacs.org index b7247b4..f0e8a99 100644 --- a/emacs.org +++ b/emacs.org @@ -37,7 +37,7 @@ TODOs are actually probably not that relevant for projex because it's more for i *** code syntax highlighting and evaluation -emacs provides support for lots of lanauges and you can start an interpreter and run code with C-c C-c (evaluate buffer) +emacs provides support for lots of languages and you can start an interpreter and run code with C-c C-c (evaluate buffer) You can also do code blocks and tangle / weave for literate programming. From 64491651cdea441d429832a60728979c5073a97a Mon Sep 17 00:00:00 2001 From: traumschule Date: Sat, 26 Jan 2019 07:28:18 -0800 Subject: [PATCH 2/3] emacs: add how to TOC --- emacs.org | 1 + 1 file changed, 1 insertion(+) diff --git a/emacs.org b/emacs.org index f0e8a99..947945a 100644 --- a/emacs.org +++ b/emacs.org @@ -5,6 +5,7 @@ C-g to cancel a command C-h a to search for commands tiling window: C-x [1..3] C-k cut C-y paste +show only headlines: navigate to first heading and do C-c C-k * emacs org mode From 4949f176282235c4617da1ed4f31425b7dd52656 Mon Sep 17 00:00:00 2001 From: traumschule Date: Sat, 26 Jan 2019 07:53:32 -0800 Subject: [PATCH 3/3] emacs howto moved to Anarchyplanet/dox --- emacs.html | 387 ----------------------------------------------------- emacs.org | 137 ------------------- 2 files changed, 524 deletions(-) delete mode 100644 emacs.html delete mode 100644 emacs.org diff --git a/emacs.html b/emacs.html deleted file mode 100644 index dce96cb..0000000 --- a/emacs.html +++ /dev/null @@ -1,387 +0,0 @@ - - - - -emacs - - - - - - - -
-

emacs

- -

-essential keystrokes: -(TAB to open bullets) <– do this lol -C-x 1 to return buffer to 1 window -C-g to cancel a command -C-h a to search for commands -tiling window: C-x [1..3] -C-k cut C-y paste -

- -
-

1 emacs org mode

-
-
-

1.1 Overview

-
-

-So there are two basic things that are useful about org mode: -

-
    -
  1. bullets are collapsible which makes it really easy to organize shit and move it around -collapsible items rule! -
  2. -
  3. TODO items have a lot of functionality -
  4. -
- -

-so, my goal is actually to take projexdemo.org and make it something that is formatted in org mode, and the reason for that is that then we can export it using pandoc with clean html (which we can add a loittle styling etc) .. . once we have a format established, we can loosely require people to add to pads in that format so that chhanges can be git pushed and incorportated into the html. You can see an example of what the raw html looks like here: https://irc.anarchyplanet.org/dox/org.html -

-
- -
-

1.1.1 Bullets

-
-
    -
  • headings are organized with * -
      -
    • M-<enter> to add new heading -
    • -
    • M-<left> or M-<right> to promote / demote heading -
    • -
    -
  • -
  • TAB to expand/collapse trees -
  • -
-
-
- -
-

1.1.2 TODOs

-
-

-TODOs are actually probably not that relevant for projex because it's more for internal use … maybe. -

-
-
  1. DONE demo emacs org mode to data
  2. -
  3. DONE enable line wrap as default
  4. -
  5. TODO re-write projex in org mode style
    -
      -
    • projexdemo.org is the test run of this. -
    • -
    • C-c C-t to cycle through todo-done -
    • -
    • You can add more options by adding #+TODO: TODO ONHOLD | DONE to the top of the page (requires restart) -
    • -
    -
    -
-
-
-

1.1.3 links

-
-
    -
  • link structure: [ [link][desc] ] (but without the spaces) -
  • -
  • file C-c C-o to open at point -this creates a split buffer. C-x o to switch between split buffers, C-x 1 to return the buffer to a single one. -
  • -
-
-
- -
-

1.1.4 code syntax highlighting and evaluation

-
-

-emacs provides support for lots of lanauges and you can start an interpreter and run code with C-c C-c (evaluate buffer) -

- -

-You can also do code blocks and tangle / weave for literate programming. -

- -

-My friend always used indent region and it was impressingly fast -

-
-
-
- - -
-

1.2 random notes

-
-
-

1.2.1 useful things overview

-
-

-So there are two basic things that are useful about org mode: -

-
    -
  1. bullets are collapsible which makes it really easy to organize shit and move it around -collapsible items rule! -
  2. -
  3. TODO items have a lot of functionality -
  4. -
- -

-The goal is to take projexdemo.org (another file in this directory) and format it into org mode. The reason is that then we can export it using pandoc with clean html (which we can add a loittle styling etc) .. . once we have a format established, we can loosely require people to add to pads in that format so that chhanges can be git pushed and incorportated into the html. You can see an example of what the raw html looks like here: https://irc.anarchyplanet.org/dox/org.html -

- -

-(I think it's a good strategy to hit enter like this when we're done typing :) ) -

-
-
- -
-

1.2.2 Switching between emacs 'buffers' (where different documents are open in the same emacs instance)

-
-
    -
  • to open projexdemo.org: C-x C-f and then start typing proj and then TAB (for autocomplete) -
  • - -
  • use C-x <left> and use C-x <right> to switch between buffers. -
  • -
-
-
- -
-

1.2.3 making bullets

-
-

-So, I guess my first question is about how I make the bullets? -

-
- -
  1. like this
    1. this is a sub-level
      -

      -Ok I'll give that a shot -

      - -

      -So to "attach" the bullet to the text under it, do I just add asterisks to the text? -

      - -

      -like this: -

      -
      -
    -
  2. - -
  3. Bullet
    -

    -This is the text under it! -

    - -

    -Damn that's east's easy :) -

    - -

    -yeah! and, you can do it with all kinds of list items, and it's also especially useful when you have long passages of text that you can just hide by pressing TAB. -

    - -

    -Perfect :) So, I might try to just "bullet" this conversation. -So I think what I did there makes sense in terms of how I organized that? -

    - -

    -YEAH! One more thing: -

    - -

    -to make new bullets you can do ALT-enter (ALT is known as M , so M-<enter>) -

    -
    -
  4. - -
  5. bullet1
  6. - -
  7. bullet 3
  8. - -
  9. bullet 2
  10. - -
  11. bullet 4
    -

    -and then, to change the order, you can use M-<up> and M-<down> … to promote you can use M-<left> and M-<right> (but this gets more complicated when you have sub-trees, so we'll worry about that layter beucause that's what I'm having problems with re; my keybindings) -

    - -

    -Note for noobs: You have to have the cursor under the bullet tomove your text, not the text itself. -

    -
    -
-
-
-
-
-
-

Created: 2019-01-23 Wed 14:51

-

Emacs 24.5.1 (Org mode 8.2.10)

-

Validate

-
- - diff --git a/emacs.org b/emacs.org deleted file mode 100644 index 947945a..0000000 --- a/emacs.org +++ /dev/null @@ -1,137 +0,0 @@ -essential keystrokes: -(TAB to open bullets) <-- do this lol -C-x 1 to return buffer to 1 window -C-g to cancel a command -C-h a to search for commands -tiling window: C-x [1..3] -C-k cut C-y paste -show only headlines: navigate to first heading and do C-c C-k - -* emacs org mode - -** Overview -So there are two basic things that are useful about org mode: - 1. bullets are collapsible which makes it really easy to organize shit and move it around - collapsible items rule! - 2. TODO items have a lot of functionality - -so, my goal is actually to take projex_demo.org and make it something that is formatted in org mode, and the *reason* for that is that then we can export it using pandoc with clean html (which we can add a loittle styling etc) .. . once we have a format established, we can loosely require people to add to pads in that format so that chhanges can be git pushed and incorportated into the html. You can see an example of what the raw html looks like here: https://irc.anarchyplanet.org/dox/org.html - -*** Bullets -- headings are organized with * - - M- to add new heading - - M- or M- to promote / demote heading -- TAB to expand/collapse trees - -*** TODOs -TODOs are actually probably not that relevant for projex because it's more for internal use ... maybe. -**** DONE demo emacs org mode to data -**** DONE enable line wrap as default -**** TODO re-write projex in org mode style - - projex_demo.org is the test run of this. - - C-c C-t to cycle through todo-done - - You can add more options by adding #+TODO: TODO ONHOLD | DONE to the top of the page (requires restart) -*** links - - link structure: [ [link][desc] ] (but without the spaces) - - [[file:test.org][file]] C-c C-o to open at point - this creates a split buffer. C-x o to switch between split buffers, C-x 1 to return the buffer to a single one. - -*** code syntax highlighting and evaluation - -emacs provides support for lots of languages and you can start an interpreter and run code with C-c C-c (evaluate buffer) - -You can also do code blocks and tangle / weave for literate programming. - -My friend always used indent region and it was impressingly fast - -*** IRC -how can i restart and save session? (keep buffers) - -there's M-x revert-buffer or -you can turn auto-revert-mode on so it will reload every time the file changes. -I've never used the second... rarely the first, I always just close :P -so i don't need to save it? it members? -no, you would have to save it. I always just do C-x C-c (closes all buffers) and save them all. I blieve if you try to revert-buffer it will prompt you to save. Do i do this after restarting or before? -C-c C-s saves all buffers, C-c C-c exits. - -M-x package-install circe -M-x circe -Can i set a socks proxy? -I am not sure... I don't understand all that v. well. - -last year i read an article/list post how outdated emacs' networking is and RMS agreed. i think the thread went viral .. - -could be! https://stackoverflow.com/questions/19699294/make-emacs-access-to-https-over-socks-proxy - -I was just gonna paste this :P - -how do i get into config mode? - -do you mean the customize emacs thing? - -to set socks-noproxy or socks-server. the config file .. - -the config file is at ~/.emacs -you can also change ~/.emacs.d/init.el - -Thanks, i changed my mind and prefer to keep my sanity! - -re: tor: we should use it for w3m tho, yah? - -sure, always. :) does emacs mind if we take aways some sycalls from it? - -** random notes -*** useful things overview -So there are two basic things that are useful about org mode: - 1. bullets are collapsible which makes it really easy to organize shit and move it around - collapsible items rule! - 2. TODO items have a lot of functionality - -The goal is to take projex_demo.org (another file in this directory) and format it into org mode. The *reason* is that then we can export it using pandoc with clean html (which we can add a loittle styling etc) .. . once we have a format established, we can loosely require people to add to pads in that format so that chhanges can be git pushed and incorportated into the html. You can see an example of what the raw html looks like here: https://irc.anarchyplanet.org/dox/org.html - -(I think it's a good strategy to hit enter like this when we're done typing :) ) - -*** Switching between emacs 'buffers' (where different documents are open in the same emacs instance) - -- to open projex_demo.org: C-x C-f and then start typing proj and then TAB (for autocomplete) - -- use C-x and use C-x to switch between buffers. - -*** making bullets -So, I guess my first question is about how I make the bullets? - -**** like this -***** this is a sub-level - -Ok I'll give that a shot - -So to "attach" the bullet to the text under it, do I just add asterisks to the text? - -like this: - -**** Bullet -This is the text under it! - -Damn that's east's easy :) - -yeah! and, you can do it with all kinds of list items, and it's also especially useful when you have long passages of text that you can just hide by pressing TAB. - -Perfect :) So, I might try to just "bullet" this conversation. -So I think what I did there makes sense in terms of how I organized that? - -YEAH! One more thing: - -to make new bullets you can do ALT-enter (ALT is known as M , so M-) - -**** bullet1 - -**** bullet 3 - -**** bullet 2 - -**** bullet 4 - -and then, to change the order, you can use M- and M- ... to promote you can use M- and M- (but this gets more complicated when you have sub-trees, so we'll worry about that layter beucause that's what I'm having problems with re; my keybindings) - -Note for noobs: You have to have the cursor under the bullet tomove your text, not the text itself. -