dekkzz76,
@dekkzz76@emacs.ch avatar

Today's rare Yak shaving....

capture templates

kickingvegas,
@kickingvegas@sfba.social avatar

@dekkzz76 something I haven't tried yet but is on my TODO list is doct which lets you define your capture template declaratively.

https://github.com/progfolio/doct

dekkzz76,
@dekkzz76@emacs.ch avatar

@kickingvegas

dunno how that would work in my case as i use 4 org files which items are saved too

screwtape,
@screwtape@mastodon.sdf.org avatar

@dekkzz76 what does capture template mean here?

dekkzz76,
@dekkzz76@emacs.ch avatar
screwtape,
@screwtape@mastodon.sdf.org avatar

@dekkzz76 so an s-expression stubbing a new org heading

dekkzz76,
@dekkzz76@emacs.ch avatar
dekkzz76,
@dekkzz76@emacs.ch avatar

@screwtape

still using org-mode? if so what features do you use the most?

screwtape,
@screwtape@mastodon.sdf.org avatar

@dekkzz76 every day at the moment I am using orgmode and it looks like this:
#+TITLE: Today's thing
#+AUTHOR: screwtape
Sometimes a preamble
<C-c C-v d elisp> -> <explicitly load babel languages being used in this document>

  • Heading :maybe_properties_too:
    #+name: a-good-name
    #+HEADER:
    <C-c C-v d lisp> -> some code
    brief commentary about the code
    ** Subheadings being demonstrations and implications of said code
  • Another heading logically independent from the first.

also tangle -> ASDF system

screwtape,
@screwtape@mastodon.sdf.org avatar

@dekkzz76 last week I tried something a bit crazy to get a "cell editor" for lisp code instead of a generic text editor, but I can't really call it a success:
#+name: tableout
#+begin_src lisp :var input=hello-world :var check='() :results output
(let* ((string (format nil "{({a^ })%~}" input)))
(with-input-from-string (standard-input string)
(let ((read (read)))
(if check
(princ read)
(princ (eval read))))))
#+end_src
draw your own conclusions

screwtape,
@screwtape@mastodon.sdf.org avatar

@dekkzz76 obviously I didn't demonstrate property drawers or however it is you put global headers around #+AUTHOR: of which I always have to look up my previous examples of how to do that.

When it makes sense for emacs/orgmode to drive something, I use org-babel-lob-ingest and elisp or maybe eshell, though orgmode's eshell support is a mystery to me.

dekkzz76,
@dekkzz76@emacs.ch avatar

@screwtape

your far deeper into it than i am, i just use it for agenda, mail, ledger & some lisp/ruby.

screwtape,
@screwtape@mastodon.sdf.org avatar

@dekkzz76 ironically, the idea of writing plain text files in order to create and use a program kinda sucks. Emacs is the ex-maclisp tradition for character editing, but emacs is really just a substrate. And the thing for it to do it comes packaged with is orgmode (life in plain text).

You don't use :session ? Honestly the annoying thing for me is changing the default package of a session.

dekkzz76,
@dekkzz76@emacs.ch avatar

@screwtape

i don't tangle anything as there isn't ob-modula which all my ABB code is written in. so the file headers in each file are pretty basic

i'm slowly looking at putting whats in my file hierarchy into org files within denote

dekkzz76,
@dekkzz76@emacs.ch avatar

@screwtape

ohh literate programming sucks, that's gonna get some comments.

screwtape,
@screwtape@mastodon.sdf.org avatar

@dekkzz76 alright it seems there's a thing, but I've always just done this recursively with org-mode's support for walking around org-files I think, but I guess it's powerful there is a sort of templating-match

dekkzz76,
@dekkzz76@emacs.ch avatar

@screwtape

i use it for appointments & most of my todo's but some i find it's easier to add by hand to the .org file.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • orgmode
  • DreamBathrooms
  • mdbf
  • ngwrru68w68
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • osvaldo12
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • InstantRegret
  • tacticalgear
  • anitta
  • ethstaker
  • provamag3
  • cisconetworking
  • tester
  • GTA5RPClips
  • cubers
  • everett
  • modclub
  • megavids
  • normalnudes
  • Leos
  • JUstTest
  • lostlight
  • All magazines