I like using org tables with org-babel like so:
#+NAME: test
| 1 | 4 |
| 2 | 5 |
| 3 | 6 |
#+begin src emacs-lisp :var test=test
(mapcar
'(lambda (r)
(mapcar '(lambda (x) (* x x)) r)) test)
#+RESULTS:
| 1 | 16 |
| 4 | 25 |
| 9 | 36 |
From the agenda dispatcher, you'd choose "m" for match (which lets you search for all kinds of things or combos of things). Then type PRIORITY="A" or whatever.
@Lea This works, but is not really what I'm looking for (It also seems hang for quite some time).
I'm looking for it in the format presented in agenda view you get in mode a
(in the weekly agenda view).
like this
Is there a way to tell #Emacs #org-mode to omit yhe TOC and headline numbers when exporting to a text or markdown file? I'm trying to implement a #JohnnyDecimal system, so I'm supplying my own numbers and the 00.00-index.org
file essentially is the table of contents.
Edit: Because not all replies federate, here's the solution I ended up with:
#+STARTUP: overview indent nonum
#+OPTIONS: toc:nil
like this
Jonathan Lamothe likes this.
Since the manual doesn't include examples, it can be confusing as to how to actually use those settings. For this case, add the following line:
#+OPTIONS: toc:nil num:nil
Jonathan Lamothe likes this.
It's been over a year now since my last blog post. #Today I started working on a new one about my adventures with #org-mode. As an experiment, I'm trying to compose the post itself in org-mode, and then export to HTML for the site.
Depending on how reasonable the resulting HTML ends up being, this might be my go-to method of composing blog posts going forward.
reshared this
Setting timezone of org-mode
I'm just getting started with org-mode, and really like it so far. I work in London with xemacs running on OpenVMS based on the East Coast US. Is there any way to get org-mode to use a timezone otherStack Overflow
Jonathan Lamothe
in reply to Jonathan Lamothe • •I've run into a snag.
I have a function,
pivot-table-get-columns
(shorthanded aspt-get-columns
). Its job is to take an #OrgMode table and produce an alist of mappings of column names to column numbers. The column names are as defined by section 3.5.10 of the org-mode manual.My code is here.
When I pass this function a table without column labels, it crashes on the
format
line (which it shouldn't even be reaching).Can someone explain to me what I'm doing wrong?
(cc: @screwlisp )
#emacs #elisp
Edit: I've been beating my head against a wall for some time on this getting nowhere and less than a minute after asking this, I see it. My first
unless
should be awhen
. I'll fix it later.reshared this
vintage screwlisp account and Chip Butty reshared this.
vintage screwlisp account
in reply to Jonathan Lamothe • • •actually, I'm unaware of
(setq result (((format "%s" cell) . n) . result))
being a permissable form. It looks like
(setq result `((,(format "%s" cell) . ,n) . ,result))
to me but I might be wrong. Does it fix the problem or did you have another insight?
vintage screwlisp account
in reply to vintage screwlisp account • • •vintage screwlisp account
in reply to vintage screwlisp account • • •vintage screwlisp account
in reply to vintage screwlisp account • • •vintage screwlisp account
in reply to vintage screwlisp account • • •Vassil Nikolov
in reply to vintage screwlisp account • • •@screwtape
> in common lisp compilers are allowed to coalesce
[constants]Right, for details see what the _file_ compiler in particular may do.
Jonathan Lamothe
in reply to vintage screwlisp account • •I did some testing and found that if I pass a named table into a source block as a variable, it automatically gets converted into s-expression form.
See below:
Jonathan Lamothe
in reply to vintage screwlisp account • •@screwlisp I've not seen the comma prefix used outside a macro before. Also, this would probably be better written as:
(push (cons (format "%s" cell) n) result)
It would certainly be more legible.
Jonathan Lamothe
in reply to Jonathan Lamothe • •@screwlisp Huzzah! That along with your point on
eq
vs.equal
did the trick!Now I've just got to, you know, write and document all the rest of it.
If this works out, I'm really excited about publishing it. I was surprised that it didn't already seem to exist.
vintage screwlisp account
in reply to Jonathan Lamothe • • •it is very exciting!
commas have to appear inside backticks, and backticks are just quotes that can have certain things inside of them unquoted (using a comma).
Macros to a large extent work like this because one principle of lisp is that lisp code be regular lisp sequences. At read time, the function names are just symbols. So it's a list of symbols/atoms and lists.
However, sometimes we /do/ want to run some code, hence backtick and comma/unquote.
vintage screwlisp account reshared this.
Vassil Nikolov
in reply to Jonathan Lamothe • • •@screwtape
> the comma prefix used outside a macro
Backquote forms are merely list (S-expression) constructors where some pieces are constant and some pieces are evaluated.
(The latter are marked with commas.)
Such forms can be used anywhere.
Obviously they are often used in macros, because macro functions construct lists (S-expressions).
I often write
`(,foo ,bar)
instead of
(list foo bar)
because the former seems clearer, especially when the structure is more involved.
#CommonLisp
Vassil Nikolov
in reply to vintage screwlisp account • • •@screwtape
> `((,(format "%s" cell) . ,n) . ,result))
In Common Lisp you would write
`(... ,@result))
but right now I am only fairly sure that Elisp has comma splicing.
#CommonLisp
#Elisp
Omar AntolΓn
in reply to Vassil Nikolov • • •Christian Tietze
in reply to Jonathan Lamothe • • •Jonathan Lamothe likes this.
hajovonta
in reply to Jonathan Lamothe • • •Jonathan Lamothe likes this.
vintage screwlisp account
in reply to hajovonta • • •Sensitive content
trivial-pivot-tables
Sacha Chua
in reply to Jonathan Lamothe • • •GitHub - tbanel/orgaggregate: Aggregate tables in Org mode
GitHubZeStig
in reply to Sacha Chua • • •Jonathan Lamothe
in reply to Sacha Chua • •Sacha Chua
in reply to Jonathan Lamothe • • •Jonathan Lamothe likes this.