Table of Contents

related [[lisp]] [[emacs]]

* lists manipulation

use dash.el

append '(a b c) '(d e f) to concat

* string manipulation

[2019-09-05] magnars/s.el: The long lost Emacs string manipulation library

much saner and more consisten than builtins

* debugging

[2018-10-13] (message (buffer-string))

* code style


:type slot; trivial-types lib?

[2018-06-18] sharp-quote names of functions (mapcar #'fun list)

[2018-04-24] elisp basics

cursor point region

&optional prams.
&rest remaining params

no named params, no type checking..


[2020-02-02] /r/emacs: (Almost) All You Need to Know About Variables

[2021-01-06] unwind-protect works as with / try-finally block [[python]] [[elisp]]

lisp unpacking like in python (let ((x '(2 3))) `(1 ,@x 4 5)) [[drill]] [[python]]


[2019-07-24] /r/emacs: Tutorial on Good Lisp Programming Style

[2020-12-13] More batteries included with emacs | Karthinks regexes in elisp

A cleaner approach to regular expressions in Emacs, as most package maintainers will tell you, is to use the rx library instead. rx translates regular expressions in sexp form to a regexp string:

[2021-01-02] Wilfred/ht.el: The missing hash table library for Emacs

[2020-02-16] Changing Properties - GNU Emacs Lisp Reference Manual

Function: add-text-properties start end props &optional object
This function adds or overrides text properties for the text between start and end in the string or buffer object. If object is nil, it defaults to the current buffer.


[2019-09-20] How to Locate the Variable I Need? : orgmode [[toblog]] [[org]] [[elisp]]

The way I deal with these things: if it's not immediately searchable on stackoverlow, I wouldn't bother doing web search.
My thinking would be:
Ok, what builting org function could possibly use number of stars? Right, when I promote/demote the subtree it must be using that at some point.

small tutorial for hacking on emacs?

mention defvar vs setq [[emacs]]

[2020-02-15] Emacs Should Be Emacs Lisp - Tom Tromey [[elisp]]

[2020-02-16] What's the performance · Issue #19 · alphapapa/org-ql

Yes, it's generally slower because it checks every heading with predicates. The tradeoff is that the code is more composable and understandable than the 5-screens-long functions in org-agenda.el. Even so, for a lot of use cases, it's fast enough already. There is already a per-buffer, per-query cache that makes performance fast on repeated queries in unchanged buffers, which helps a lot.

[2020-02-16] What's the performance · Issue #19 · alphapapa/org-ql

    One cool trick that elfeed implements is JIT-compilation of search queries. If you call a function in a map or a loop or something similar this makes a difference.
Yeah, I learned that trick from Chris's code. Both the "predicate" function and "action" function are byte-compiled before running the "query".

[2020-02-24] bbatsov/emacs-lisp-style-guide: A community-driven Emacs Lisp style guide [[elisp]]

[2021-02-09] (8) Writing A Spotify Client in 16 Minutes - YouTube [[elisp]]

I mean.. ok, but nothing super remarkable idk?
should do a similar demo in python, for example