Skip to main content
dalanicolai's user avatar
dalanicolai's user avatar
dalanicolai's user avatar
dalanicolai
  • Member for 5 years
  • Last seen more than a month ago
comment
Is it possible to do conditional formatting on an org-table?
I am not sure what you mean by your question, but I think the 'list of lists' section of my answer might answer it. You should name your original table and then pass it as a variable to an org src-block. The table will be 'parsed' to a list of lists, which you can transform to create your new table. The only problem with that solution is that I don't know how to apply a 'face' to (parts of) the table. (Try it... name your table as instructed and then copy and evaluate that example src-block)
revised
Loading…
revised
Loading…
revised
Is it possible to do conditional formatting on an org-table?
add suggestion about using list of lists directly
Loading…
revised
Loading…
revised
Loading…
comment
Is it possible to do conditional formatting on an org-table?
To use conditions by value, you can use org-element-contents. I have updated the answer.
revised
Is it possible to do conditional formatting on an org-table?
Add suggestion of using `org-element-contents` and `org-export-before-processing-hook` solution example
Loading…
comment
Wrong number of arguments error
evil-insert requires at least one argument (see its docstring). Alternatively, you could use (evil-insert-state).
comment
Is it possible to do conditional formatting on an org-table?
The org-export-table-cell-address is just to get the row and column numbers (you can wrap it in a print, to see its return value). You can print the contents of the cells by commenting out the lines. Then you can use the pcase to select the cells you mentioned (read about pcase here). Or you could replace the pcase with a when or cond for applying rules based on values.
Loading…
Loading…
Loading…
Loading…
answered
Loading…
comment
If there's no function/variable eldoc shouts void-function
Does it happen also when using eglot? (If you're on Emacs 29, and gopls is in your path, then just stop LSP and start eglot. As you are not using go-eldoc, I guess eldoc functionality comes from LSP, just guessing...)
comment
alphanumeric sort of a region
You probably have a line with a different pattern in your file then. Alphanumeric sort is 'embedded'. The problem is that the 'decimal place holders', are not all in the same column. Indeed, it would be nice if the definition of 'field' in the sort commands, like sort-numeric-field, could be defined a bit more flexibly. But the flexibility is anyway provided by using lisp directly. Of course, every 'engineer' is free to contribute improved sorting functions :)
revised
alphanumeric sort of a region
Add correct answer
Loading…
revised
alphanumeric sort of a region
added 149 characters in body
Loading…
answered
Loading…
1
3 4
5
6 7
83