Questions tagged [keywords]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
5
votes
1answer
324 views

What does : mean in elisp?

Does the : have a special meaning in Elisp? (define-minor-mode dap-mode "Global minor mode for DAP mode." :init-value nil :group 'dap-mode :...
0
votes
1answer
26 views

What is the difference between Workflow states vs Types in org-mode?

In org-mode, what is the difference between TODO workflow states and TODO types? They looks and seems the same. Here's a simple workflow states: (setq org-todo-keywords '((sequence &...
3
votes
1answer
78 views

Adding new keywords delimeters

I am new to the Emacs (Doom Emacs to be precise) scene, and recently I came up with a minor mode that could come in handy for me so I decided to implement it. To achieve the full functionality of my ...
1
vote
0answers
28 views

Defining a function that takes keyword arguments and a variable number of positional ones

I want to define a function that takes both keyword arguments (as in &key) and a variable number of positional ones (&rest). They should be independent of each other, the keyword list should ...
0
votes
2answers
51 views

How to raise an error when unrecogized keyword arguments are passed to a function?

With a function that uses keyword arguments using this style of function definition: (defun some-name (&rest kwargs) (plist-get kwargs 'example)) Is there a convenient way to ensure only ...
0
votes
1answer
39 views

Inline elements of variable list value in rx() macro call [duplicate]

Is there a more compact way to make use of the rx macro in cases where we want to inline a list of strings from a variable? Such as (defconst c++20-new-keywords-list (list "char8_t" "import" ...
1
vote
0answers
256 views

Loading new agenda keywords (org-todo-keywords) is broken for me - bug in Emacs?

Objective I decided to add custom agenda keywords (I'm still setting up the environment, don't have any agenda files yet) and I used this example code from some tutorial: (setq org-todo-keywords ...
0
votes
0answers
43 views

Is there a canonical way to convert a keyword to a symbol with no :?

I want to convert keywords, e.g. :some-key to a plain symbol like some-key. I currently do this with: (intern-soft (substring (symbol-name :some-key) 1)) Is there a better way?