updates to emacs.org
This commit is contained in:
parent
3e72251f2a
commit
2b2ad5c88e
172
_proto.org
172
_proto.org
@ -1,69 +1,137 @@
|
||||
(open bullets with TAB)
|
||||
|
||||
* TODOS
|
||||
** TODO notnull will test emacs howto-from-scratch tutorial
|
||||
** DONE notnull will test emacs howto-from-scratch tutorial
|
||||
** DONE enable w3m on emacs
|
||||
*** w3m (TLDR?)
|
||||
https://www.emacswiki.org/emacs/emacs-w3m
|
||||
^ I am interestd in using w3m so we can keep it consistent outside of emacs, but I'll start with getting w3 to work maybe[strike that]. (emacs' standard browser is called eww, RMS really has a way with naming things with awful names)
|
||||
|
||||
**** how to install
|
||||
|
||||
- add melpa to packages (not melpa-stable)
|
||||
(require 'package)
|
||||
(add-to-list 'package-archives
|
||||
'("melpa" . "https://melpa.org/packages/") t)
|
||||
(package-initialize)
|
||||
- M-x package-refresh-contents
|
||||
- M-x package-install <enter> w3m <enter>
|
||||
**** random notes
|
||||
|
||||
|
||||
I added the melpa repo to .emacs and that provided several more packages, but not the one listed above.
|
||||
|
||||
I tried to set the customize variable to emacs w3, still got the error that there's no such file.
|
||||
|
||||
sorry :)
|
||||
|
||||
no worries! It's helpful to carriage return when you're done. :P
|
||||
|
||||
tbh, I rly doubt all that is necessary. I always get really skeptical of instructions that requre lots of crazy commands... emacs has a strange installation procedure and I've gotten this to work before (on another computer) but I'll keep researching.
|
||||
|
||||
Question is why is w3m found by emacs on the other system and what's wrong here?
|
||||
|
||||
which other system?
|
||||
|
||||
> I've gotten this to work before (on another computer)
|
||||
|
||||
cool, keep on it!
|
||||
*** option with config foo: https://www.emacswiki.org/emacs/BrowseUrl#toc4
|
||||
In order to fix it, you must run w3m as a shell command in order to capture the output. Here is how:
|
||||
|
||||
In your ~/.emacs:
|
||||
|
||||
(if window-system
|
||||
(setq browse-url-browser-function 'browse-url-generic
|
||||
browse-url-generic-program "web-browser")
|
||||
(setq browse-url-browser-function 'my-browse))
|
||||
|
||||
(defun my-browse (url &rest ignore)
|
||||
"Browse URL using w3m."
|
||||
(interactive "sURL: ")
|
||||
(shell-command (concat "w3m " url))
|
||||
(pop-to-buffer "*Shell Command Output*")
|
||||
(setq truncate-lines t))
|
||||
|
||||
In your ~/bin/web-browser (a shell script):
|
||||
|
||||
#! /bin/bash
|
||||
|
||||
if [ -z "$1" ]; then
|
||||
URL="-B"
|
||||
else
|
||||
URL=$1
|
||||
fi
|
||||
|
||||
if [ -z "$DISPLAY" ]; then
|
||||
w3m $URL
|
||||
else
|
||||
xterm -name web-browser -bg "#304020" -fg "navajo white" -e w3m $URL
|
||||
fi
|
||||
|
||||
Note that now you can define `web-browser %s &’ as an external browser in w3m, such that – in X – you can spawn more windows.
|
||||
|
||||
Note also that if you want to run w3m interactively when it runs within Emacs (in the example given that happens only when calling ‘browse-url’ within Emacs on the console), then you need emacs-w3m.
|
||||
|
||||
*** w3 (no, too old)
|
||||
we decided not to go with w3 lol
|
||||
|
||||
> error in process filter: w3-draw-tree: Symbol's value as variable is void: w3--args
|
||||
> process filter: Symbol's value as variable is void: w3--args
|
||||
what does that mean?
|
||||
https://lists.gnu.org/archive/html/bug-gnu-emacs/2017-01/msg00248.html
|
||||
> Still, doesn't seem actively maintained, based on
|
||||
> https://lists.gnu.org/archive/html/bug-gnu-emacs/2017-01/msg00326.html
|
||||
|
||||
According to the above url:
|
||||
The package was last developed 8.5 years ago.
|
||||
It was added to elpa.gnu.org 3 years ago, with 4 commits.
|
||||
The error you are seeing comes from one of those commits ("try to fix
|
||||
compiler warnings"). "M-x w3" has the same error. So I can only
|
||||
assume this package has not been tested or used by anyone since it was
|
||||
added to elpa.gnu.org.
|
||||
So I have to wonder what the value of having it there is.
|
||||
|
||||
I suggest you use M-x eww instead, and that if no-one wants to maintain
|
||||
w3 it be removed from elpa.gnu.org.
|
||||
|
||||
-> how to disable elpa?
|
||||
|
||||
why would we? elpa is just a repository for emacs packages. melpa is another one... so we can remove w3, but what I don't understand is, according to https://www.emacswiki.org/emacs/emacs-w3m, It is best to download from ...official third-party mirror such as exist on MELPA or github (https://github.com/emacsorphanage/w3m.git).
|
||||
https://git.savannah.gnu.org/cgit/w3.git/ 11y :D lol
|
||||
|
||||
|
||||
this is a lisp syntax thing, it's like the variable was undefined. we could do a backtrace and run the command again and it would give al linfo but it's in lisp, dunno if you know any lisp...
|
||||
yes, that sounds fun.
|
||||
i know it has a lot of brackets :)
|
||||
trying to remember how... take your time, i love watching other's work.
|
||||
|
||||
I really hate 99% of documentation. It should not be this hard to google search and find instructions on how to enable this...
|
||||
|
||||
** TODO write git workflow (see section below w/ questions)
|
||||
* proto
|
||||
|
||||
The purpose of proto is to document a workflow for projex, etc. The first step is emacs / pandoc / git.
|
||||
|
||||
** emacs org mode
|
||||
So I want this to be a very brief overview of features etc. so people can get started using it the way we want, but it's not finished...
|
||||
|
||||
the point is that org mode has a simple syntax that can be converted very easily w/ pandoc to html with no garbage. it also makes things easy to organize.
|
||||
|
||||
for example, C-x C-f projex_demo.org
|
||||
|
||||
projex_demo.org = wget --no-check-certificate https://irc.anarchyplanet.org/pad/p/projex, and then added some bullets in like 5 minutes ... the organization still needs work but it's relatively easy. My goal is to org-mode organize the projex pad and then copy-paste it back into the pad, cleaned up. And then also to pandoc convert it to html.
|
||||
|
||||
*** Bullets
|
||||
|
||||
- headers are organized with *
|
||||
- M-<enter> to add new heading
|
||||
- M-<left> or M-<right> to promote / demote heading
|
||||
- TAB to expand/collapse trees
|
||||
|
||||
*** TODOs
|
||||
**** 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 with
|
||||
*** links
|
||||
- link structure: [ [link][desc] ] (but without the spaces)
|
||||
- [[file:test.org][file]] C-c C-o to open at point
|
||||
*** agenda mode
|
||||
|
||||
- agenda mode command has to be added
|
||||
|
||||
*** exports
|
||||
*** code blocks / literate programming
|
||||
|
||||
[[file:emacs.org][emacs overview]] (hover over link and type C-c C-o)
|
||||
** Git Workflow
|
||||
- git home = serge:srv/git
|
||||
- mkdir projex/repo.git && cd repo.git && git init --bare
|
||||
- torsocks git clone git@w2ja5hhrcjc2wnxe.onion:projex/repo.git
|
||||
- this requires that you have a pubkey added to srv/git/.ssh/authorized_keys
|
||||
- see /var/www/irc.anarchyplanet.org/dox for an example of this locally
|
||||
(git remote -v)
|
||||
- you will clone an empty repo... make changes locally and then push
|
||||
- make changes locally
|
||||
- torsocks git push origin master
|
||||
https://irc.anarchyplanet.org/pad/p/git <-- I wonder how to make this a link that will open a web browser in emacs?
|
||||
|
||||
*** branch issues with git push
|
||||
I don't have permissions figured out perfectly for this. when I push as notnull@host it hangs (permission issue) but when I push as root it's fine.
|
||||
also when I push as notnull@serge.
|
||||
how to execute a command from emacs?
|
||||
|
||||
notnull is part of group git.
|
||||
M-x and then type it
|
||||
|
||||
I need to examine permissions for /srv/git
|
||||
I don't think it quite works like that...
|
||||
|
||||
Does /srv/git/projex/proto/ need to be owned by notnull? does the push need to happen as git user?
|
||||
https://en.wikibooks.org/wiki/Git/Gitosis#Defining_Groups,_Members,_Permissions,_and_Repositories
|
||||
https://wiki.archlinux.org/index.php/Gitosis#Repositories_and_permissions
|
||||
we need MELPA which is a package repo for emacs, has more than elpa
|
||||
|
||||
I'll figure out how to get it, one sec
|
||||
|
||||
why can't i type space?
|
||||
|
||||
- = space in
|
||||
currently trying to set this up https://www.emacswiki.org/emacs/emacs-w3m
|
||||
does it work?
|
||||
** random notes
|
||||
|
||||
online collaboration and async communication: <manifesto will go here>
|
||||
|
387
emacs.html
Normal file
387
emacs.html
Normal file
@ -0,0 +1,387 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
|
||||
<head>
|
||||
<title>emacs</title>
|
||||
<!-- 2019-01-23 Wed 14:51 -->
|
||||
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
|
||||
<meta name="generator" content="Org-mode" />
|
||||
<style type="text/css">
|
||||
<!--/*--><![CDATA[/*><!--*/
|
||||
.title { text-align: center; }
|
||||
.todo { font-family: monospace; color: red; }
|
||||
.done { color: green; }
|
||||
.tag { background-color: #eee; font-family: monospace;
|
||||
padding: 2px; font-size: 80%; font-weight: normal; }
|
||||
.timestamp { color: #bebebe; }
|
||||
.timestamp-kwd { color: #5f9ea0; }
|
||||
.right { margin-left: auto; margin-right: 0px; text-align: right; }
|
||||
.left { margin-left: 0px; margin-right: auto; text-align: left; }
|
||||
.center { margin-left: auto; margin-right: auto; text-align: center; }
|
||||
.underline { text-decoration: underline; }
|
||||
#postamble p, #preamble p { font-size: 90%; margin: .2em; }
|
||||
p.verse { margin-left: 3%; }
|
||||
pre {
|
||||
border: 1px solid #ccc;
|
||||
box-shadow: 3px 3px 3px #eee;
|
||||
padding: 8pt;
|
||||
font-family: monospace;
|
||||
overflow: auto;
|
||||
margin: 1.2em;
|
||||
}
|
||||
pre.src {
|
||||
position: relative;
|
||||
overflow: visible;
|
||||
padding-top: 1.2em;
|
||||
}
|
||||
pre.src:before {
|
||||
display: none;
|
||||
position: absolute;
|
||||
background-color: white;
|
||||
top: -10px;
|
||||
right: 10px;
|
||||
padding: 3px;
|
||||
border: 1px solid black;
|
||||
}
|
||||
pre.src:hover:before { display: inline;}
|
||||
pre.src-sh:before { content: 'sh'; }
|
||||
pre.src-bash:before { content: 'sh'; }
|
||||
pre.src-emacs-lisp:before { content: 'Emacs Lisp'; }
|
||||
pre.src-R:before { content: 'R'; }
|
||||
pre.src-perl:before { content: 'Perl'; }
|
||||
pre.src-java:before { content: 'Java'; }
|
||||
pre.src-sql:before { content: 'SQL'; }
|
||||
|
||||
table { border-collapse:collapse; }
|
||||
caption.t-above { caption-side: top; }
|
||||
caption.t-bottom { caption-side: bottom; }
|
||||
td, th { vertical-align:top; }
|
||||
th.right { text-align: center; }
|
||||
th.left { text-align: center; }
|
||||
th.center { text-align: center; }
|
||||
td.right { text-align: right; }
|
||||
td.left { text-align: left; }
|
||||
td.center { text-align: center; }
|
||||
dt { font-weight: bold; }
|
||||
.footpara:nth-child(2) { display: inline; }
|
||||
.footpara { display: block; }
|
||||
.footdef { margin-bottom: 1em; }
|
||||
.figure { padding: 1em; }
|
||||
.figure p { text-align: center; }
|
||||
.inlinetask {
|
||||
padding: 10px;
|
||||
border: 2px solid gray;
|
||||
margin: 10px;
|
||||
background: #ffffcc;
|
||||
}
|
||||
#org-div-home-and-up
|
||||
{ text-align: right; font-size: 70%; white-space: nowrap; }
|
||||
textarea { overflow-x: auto; }
|
||||
.linenr { font-size: smaller }
|
||||
.code-highlighted { background-color: #ffff00; }
|
||||
.org-info-js_info-navigation { border-style: none; }
|
||||
#org-info-js_console-label
|
||||
{ font-size: 10px; font-weight: bold; white-space: nowrap; }
|
||||
.org-info-js_search-highlight
|
||||
{ background-color: #ffff00; color: #000000; font-weight: bold; }
|
||||
/*]]>*/-->
|
||||
</style>
|
||||
<script type="text/javascript">
|
||||
/*
|
||||
@licstart The following is the entire license notice for the
|
||||
JavaScript code in this tag.
|
||||
|
||||
Copyright (C) 2012-2013 Free Software Foundation, Inc.
|
||||
|
||||
The JavaScript code in this tag is free software: you can
|
||||
redistribute it and/or modify it under the terms of the GNU
|
||||
General Public License (GNU GPL) as published by the Free Software
|
||||
Foundation, either version 3 of the License, or (at your option)
|
||||
any later version. The code is distributed WITHOUT ANY WARRANTY;
|
||||
without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
FOR A PARTICULAR PURPOSE. See the GNU GPL for more details.
|
||||
|
||||
As additional permission under GNU GPL version 3 section 7, you
|
||||
may distribute non-source (e.g., minimized or compacted) forms of
|
||||
that code without the copy of the GNU GPL normally required by
|
||||
section 4, provided you include this license notice and a URL
|
||||
through which recipients can access the Corresponding Source.
|
||||
|
||||
|
||||
@licend The above is the entire license notice
|
||||
for the JavaScript code in this tag.
|
||||
*/
|
||||
<!--/*--><![CDATA[/*><!--*/
|
||||
function CodeHighlightOn(elem, id)
|
||||
{
|
||||
var target = document.getElementById(id);
|
||||
if(null != target) {
|
||||
elem.cacheClassElem = elem.className;
|
||||
elem.cacheClassTarget = target.className;
|
||||
target.className = "code-highlighted";
|
||||
elem.className = "code-highlighted";
|
||||
}
|
||||
}
|
||||
function CodeHighlightOff(elem, id)
|
||||
{
|
||||
var target = document.getElementById(id);
|
||||
if(elem.cacheClassElem)
|
||||
elem.className = elem.cacheClassElem;
|
||||
if(elem.cacheClassTarget)
|
||||
target.className = elem.cacheClassTarget;
|
||||
}
|
||||
/*]]>*///-->
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="content">
|
||||
<h1 class="title">emacs</h1>
|
||||
<div id="table-of-contents">
|
||||
<h2>Table of Contents</h2>
|
||||
<div id="text-table-of-contents">
|
||||
<ul>
|
||||
<li><a href="#sec-1">1. emacs org mode</a>
|
||||
<ul>
|
||||
<li><a href="#sec-1-1">1.1. Overview</a>
|
||||
<ul>
|
||||
<li><a href="#sec-1-1-1">1.1.1. Bullets</a></li>
|
||||
<li><a href="#sec-1-1-2">1.1.2. TODOs</a></li>
|
||||
<li><a href="#sec-1-1-3">1.1.3. links</a></li>
|
||||
<li><a href="#sec-1-1-4">1.1.4. code syntax highlighting and evaluation</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><a href="#sec-1-2">1.2. random notes</a>
|
||||
<ul>
|
||||
<li><a href="#sec-1-2-1">1.2.1. useful things overview</a></li>
|
||||
<li><a href="#sec-1-2-2">1.2.2. Switching between emacs 'buffers' (where different documents are open in the same emacs instance)</a></li>
|
||||
<li><a href="#sec-1-2-3">1.2.3. making bullets</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<p>
|
||||
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
|
||||
</p>
|
||||
|
||||
<div id="outline-container-sec-1" class="outline-2">
|
||||
<h2 id="sec-1"><span class="section-number-2">1</span> emacs org mode</h2>
|
||||
<div class="outline-text-2" id="text-1">
|
||||
</div><div id="outline-container-sec-1-1" class="outline-3">
|
||||
<h3 id="sec-1-1"><span class="section-number-3">1.1</span> Overview</h3>
|
||||
<div class="outline-text-3" id="text-1-1">
|
||||
<p>
|
||||
So there are two basic things that are useful about org mode:
|
||||
</p>
|
||||
<ol class="org-ol">
|
||||
<li>bullets are collapsible which makes it really easy to organize shit and move it around
|
||||
collapsible items rule!
|
||||
</li>
|
||||
<li>TODO items have a lot of functionality
|
||||
</li>
|
||||
</ol>
|
||||
|
||||
<p>
|
||||
so, my goal is actually to take projex<sub>demo</sub>.org and make it something that is formatted in org mode, and the <b>reason</b> 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: <a href="https://irc.anarchyplanet.org/dox/org.html">https://irc.anarchyplanet.org/dox/org.html</a>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-sec-1-1-1" class="outline-4">
|
||||
<h4 id="sec-1-1-1"><span class="section-number-4">1.1.1</span> Bullets</h4>
|
||||
<div class="outline-text-4" id="text-1-1-1">
|
||||
<ul class="org-ul">
|
||||
<li>headings are organized with *
|
||||
<ul class="org-ul">
|
||||
<li>M-<enter> to add new heading
|
||||
</li>
|
||||
<li>M-<left> or M-<right> to promote / demote heading
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>TAB to expand/collapse trees
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-sec-1-1-2" class="outline-4">
|
||||
<h4 id="sec-1-1-2"><span class="section-number-4">1.1.2</span> TODOs</h4>
|
||||
<div class="outline-text-4" id="text-1-1-2">
|
||||
<p>
|
||||
TODOs are actually probably not that relevant for projex because it's more for internal use … maybe.
|
||||
</p>
|
||||
</div>
|
||||
<ol class="org-ol"><li><a id="sec-1-1-2-1" name="sec-1-1-2-1"></a><span class="done DONE">DONE</span> demo emacs org mode to data<br /></li>
|
||||
<li><a id="sec-1-1-2-2" name="sec-1-1-2-2"></a><span class="done DONE">DONE</span> enable line wrap as default<br /></li>
|
||||
<li><a id="sec-1-1-2-3" name="sec-1-1-2-3"></a><span class="todo TODO">TODO</span> re-write projex in org mode style<br /><div class="outline-text-5" id="text-1-1-2-3">
|
||||
<ul class="org-ul">
|
||||
<li>projex<sub>demo</sub>.org is the test run of this.
|
||||
</li>
|
||||
<li>C-c C-t to cycle through todo-done
|
||||
</li>
|
||||
<li>You can add more options by adding #+TODO: TODO ONHOLD | DONE to the top of the page (requires restart)
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</li></ol>
|
||||
</div>
|
||||
<div id="outline-container-sec-1-1-3" class="outline-4">
|
||||
<h4 id="sec-1-1-3"><span class="section-number-4">1.1.3</span> links</h4>
|
||||
<div class="outline-text-4" id="text-1-1-3">
|
||||
<ul class="org-ul">
|
||||
<li>link structure: [ [link][desc] ] (but without the spaces)
|
||||
</li>
|
||||
<li><a href="test.html">file</a> 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.
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-sec-1-1-4" class="outline-4">
|
||||
<h4 id="sec-1-1-4"><span class="section-number-4">1.1.4</span> code syntax highlighting and evaluation</h4>
|
||||
<div class="outline-text-4" id="text-1-1-4">
|
||||
<p>
|
||||
emacs provides support for lots of lanauges and you can start an interpreter and run code with C-c C-c (evaluate buffer)
|
||||
</p>
|
||||
|
||||
<p>
|
||||
You can also do code blocks and tangle / weave for literate programming.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
My friend always used indent region and it was impressingly fast
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="outline-container-sec-1-2" class="outline-3">
|
||||
<h3 id="sec-1-2"><span class="section-number-3">1.2</span> random notes</h3>
|
||||
<div class="outline-text-3" id="text-1-2">
|
||||
</div><div id="outline-container-sec-1-2-1" class="outline-4">
|
||||
<h4 id="sec-1-2-1"><span class="section-number-4">1.2.1</span> useful things overview</h4>
|
||||
<div class="outline-text-4" id="text-1-2-1">
|
||||
<p>
|
||||
So there are two basic things that are useful about org mode:
|
||||
</p>
|
||||
<ol class="org-ol">
|
||||
<li>bullets are collapsible which makes it really easy to organize shit and move it around
|
||||
collapsible items rule!
|
||||
</li>
|
||||
<li>TODO items have a lot of functionality
|
||||
</li>
|
||||
</ol>
|
||||
|
||||
<p>
|
||||
The goal is to take projex<sub>demo</sub>.org (another file in this directory) and format it into org mode. The <b>reason</b> 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: <a href="https://irc.anarchyplanet.org/dox/org.html">https://irc.anarchyplanet.org/dox/org.html</a>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
(I think it's a good strategy to hit enter like this when we're done typing :) )
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-sec-1-2-2" class="outline-4">
|
||||
<h4 id="sec-1-2-2"><span class="section-number-4">1.2.2</span> Switching between emacs 'buffers' (where different documents are open in the same emacs instance)</h4>
|
||||
<div class="outline-text-4" id="text-1-2-2">
|
||||
<ul class="org-ul">
|
||||
<li>to open projex<sub>demo</sub>.org: C-x C-f and then start typing proj and then TAB (for autocomplete)
|
||||
</li>
|
||||
|
||||
<li>use C-x <left> and use C-x <right> to switch between buffers.
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="outline-container-sec-1-2-3" class="outline-4">
|
||||
<h4 id="sec-1-2-3"><span class="section-number-4">1.2.3</span> making bullets</h4>
|
||||
<div class="outline-text-4" id="text-1-2-3">
|
||||
<p>
|
||||
So, I guess my first question is about how I make the bullets?
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<ol class="org-ol"><li><a id="sec-1-2-3-1" name="sec-1-2-3-1"></a>like this<br /><ol class="org-ol"><li><a id="sec-1-2-3-1-1" name="sec-1-2-3-1-1"></a>this is a sub-level<br /><div class="outline-text-6" id="text-1-2-3-1-1">
|
||||
<p>
|
||||
Ok I'll give that a shot
|
||||
</p>
|
||||
|
||||
<p>
|
||||
So to "attach" the bullet to the text under it, do I just add asterisks to the text?
|
||||
</p>
|
||||
|
||||
<p>
|
||||
like this:
|
||||
</p>
|
||||
</div>
|
||||
</li></ol>
|
||||
</li>
|
||||
|
||||
<li><a id="sec-1-2-3-2" name="sec-1-2-3-2"></a>Bullet<br /><div class="outline-text-5" id="text-1-2-3-2">
|
||||
<p>
|
||||
This is the text under it!
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Damn that's east's easy :)
|
||||
</p>
|
||||
|
||||
<p>
|
||||
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.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
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?
|
||||
</p>
|
||||
|
||||
<p>
|
||||
YEAH! One more thing:
|
||||
</p>
|
||||
|
||||
<p>
|
||||
to make new bullets you can do ALT-enter (ALT is known as M , so M-<enter>)
|
||||
</p>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li><a id="sec-1-2-3-3" name="sec-1-2-3-3"></a>bullet1<br /></li>
|
||||
|
||||
<li><a id="sec-1-2-3-4" name="sec-1-2-3-4"></a>bullet 3<br /></li>
|
||||
|
||||
<li><a id="sec-1-2-3-5" name="sec-1-2-3-5"></a>bullet 2<br /></li>
|
||||
|
||||
<li><a id="sec-1-2-3-6" name="sec-1-2-3-6"></a>bullet 4<br /><div class="outline-text-5" id="text-1-2-3-6">
|
||||
<p>
|
||||
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)
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Note for noobs: You have to have the cursor under the bullet tomove your text, not the text itself.
|
||||
</p>
|
||||
</div>
|
||||
</li></ol>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="postamble" class="status">
|
||||
<p class="date">Created: 2019-01-23 Wed 14:51</p>
|
||||
<p class="creator"><a href="http://www.gnu.org/software/emacs/">Emacs</a> 24.5.1 (<a href="http://orgmode.org">Org</a> mode 8.2.10)</p>
|
||||
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
51
emacs.org
51
emacs.org
@ -1,5 +1,11 @@
|
||||
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
|
||||
|
||||
* emacs org mode
|
||||
|
||||
** Overview
|
||||
@ -29,7 +35,50 @@ TODOs are actually probably not that relevant for projex because it's more for i
|
||||
- [[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 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
|
||||
|
||||
*** 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 <enter>
|
||||
M-x circe <enter>
|
||||
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:
|
||||
|
Loading…
Reference in New Issue
Block a user