@@ -224,7 +224,7 @@ Enabled:
224
224
If this highlight group does not suit you, you can apply different highlight group to it:
225
225
226
226
``` lua
227
- vim .cmd [[ autocmd ColorScheme * hi link OrgHideLeadingStars MyCustomHlGroup]]
227
+ vim .cmd [[ autocmd ColorScheme * hi link @org.leading.stars MyCustomHlGroup]]
228
228
```
229
229
230
230
#### ** org_hide_emphasis_markers**
@@ -1315,67 +1315,91 @@ Currently, these things are formatted:
1315
1315
## User interface
1316
1316
1317
1317
### Colors
1318
+ Most of the highlight groups are linked to treesitter highlights where applicable (see ` :h treesitter-highlight ` ).
1319
+
1320
+ The following highlight groups are used:
1321
+
1322
+ * ` @org.headline.level.1 ` : Headline at level 1 - ` linked to Title `
1323
+ * ` @org.headline.level.2 ` : Headline at level 2 - ` linked to Constant `
1324
+ * ` @org.headline.level.3 ` : Headline at level 3 - ` linked to Identifier `
1325
+ * ` @org.headline.level.4 ` : Headline at level 4 - ` linked to Statement `
1326
+ * ` @org.headline.level.5 ` : Headline at level 5 - ` linked to PreProc `
1327
+ * ` @org.headline.level.6 ` : Headline at level 6 - ` linked to Type `
1328
+ * ` @org.headline.level.7 ` : Headline at level 7 - ` linked to Special `
1329
+ * ` @org.headline.level.8 ` : Headline at level 8 - ` linked to String `
1330
+ * ` @org.timestamp.active ` : An active timestamp - linked to ` @keyword `
1331
+ * ` @org.timestamp.inactive ` : An inactive timestamp - linked to ` @comment `
1332
+ * ` @org.keyword.todo ` : TODO keywords color - Parsed from ` Error ` (see note below)
1333
+ * ` @org.keyword.done ` : DONE keywords color - Parsed from ` DiffAdd ` (see note below)
1334
+ * ` @org.bullet ` : A normal bullet under a header item - linked to ` @markup.list `
1335
+ * ` @org.properties ` : Property drawer start/end delimiters - linked to ` @property `
1336
+ * ` @org.drawer ` : Drawer start/end delimiters - linked to ` @property `
1337
+ * ` @org.tag ` : A tag for a headline item, shown on the righthand side like ` :foo: ` - linked to ` @tag.attribute `
1338
+ * ` @org.plan ` : ` SCHEDULED ` , ` DEADLINE ` , ` CLOSED ` , etc. keywords - linked to ` Constant `
1339
+ * ` @org.comment ` : A comment block - linked to ` @comment `
1340
+ * ` @org.latex_env ` : LaTeX block - linked to ` @markup.environment `
1341
+ * ` @org.directive ` : Blocks starting with ` #+ ` - linked to ` @comment `
1342
+ * ` @org.checkbox ` : The default checkbox highlight, including square brackets - linked to ` @markup.list.unchecked `
1343
+ * ` @org.checkbox.halfchecked ` : A checkbox status (marker between ` [] ` ) checked with ` [-] ` - linked to ` @markup.list.unchecked `
1344
+ * ` @org.checkbox.checked ` : A checkbox status (marker between ` [] ` ) checked with either ` [x] ` or ` [X] ` - linked to ` @markup.list.checked `
1345
+ * ` @org.bold ` : ** bold** text - linked to ` @markup.strong ` ,
1346
+ * ` @org.bold.delimiter ` : bold text delimiter ` * ` - linked to ` @markup.strong ` ,
1347
+ * ` @org.italic ` : * italic* text - linked to ` @markup.italic ` ,
1348
+ * ` @org.italic.delimiter ` : italic text delimiter ` / ` - linked to ` @markup.italic ` ,
1349
+ * ` @org.strikethrough ` : ~ strikethrough~ text - linked to ` @markup.strikethrough ` ,
1350
+ * ` @org.strikethrough.delimiter ` : strikethrough text delimiter ` + ` - linked to ` @markup.strikethrough ` ,
1351
+ * ` @org.underline ` : <u >underline<u /> text - linked to ` @markup.underline ` ,
1352
+ * ` @org.underline.delimiter ` : underline text delimiter ` _ ` - linked to ` @markup.underline ` ,
1353
+ * ` @org.code ` : ` code ` text - linked to ` @markup.raw ` ,
1354
+ * ` @org.code.delimiter ` : code text delimiter ` ~ ` - linked to ` @markup.raw ` ,
1355
+ * ` @org.verbatim ` : ` verbatim ` text - linked to ` @markup.raw ` ,
1356
+ * ` @org.verbatim.delimiter ` : verbatim text delimiter ` = ` - linked to ` @markup.raw ` ,
1357
+ * ` @org.hyperlink ` : [ link] ( link ) text - linked to ` @markup.link.url ` ,
1358
+ * ` @org.latex ` : Inline latex - linked to ` @markup.math ` ,
1359
+ * ` @org.table.delimiter ` - ` | ` and ` - ` delimiters in tables - linked to ` @punctuation.special ` ,
1360
+ * ` @org.table.heading ` - Table headings - linked to ` @markup.heading ` ,
1361
+ * ` @org.edit_src ` - The highlight for the source content in an _ Org_ buffer while it is being edited in an edit special buffer - linked to ` Visual ` ,
1362
+ * ` @org.agenda.deadline ` : A item deadline in the agenda view - Parsed from ` Error ` (see note below)
1363
+ * ` @org.agenda.scheduled ` : A scheduled item in the agenda view - Parsed from ` DiffAdd ` (see note dbelow)
1364
+ * ` @org.agenda.scheduled_past ` : A item past its scheduled date in the agenda view - Parsed from ` WarningMsg ` (see note below)
1365
+
1366
+ Note:
1367
+
1318
1368
Colors used for todo keywords and agenda states (deadline, schedule ok, schedule warning)
1319
- are parsed from the current colorsheme from several highlight groups (Error, WarningMsg, DiffAdd, etc.).
1320
- If those colors are not suitable you can override them like this:
1369
+ are parsed from the current colorscheme from several highlight groups (Error, WarningMsg, DiffAdd, etc.).
1321
1370
1322
- ``` vim
1323
- autocmd ColorScheme * call s:setup_org_colors()
1324
1371
1325
- function! s:setup_org_colors() abort
1326
- hi OrgAgendaDeadline guifg=#FFAAAA
1327
- hi OrgAgendaScheduled guifg=#AAFFAA
1328
- hi OrgAgendaScheduledPast guifg=Orange
1329
- endfunction
1372
+ #### Overriding colors
1373
+ All colors can be overridden by either setting new values or linking to another highlight group:
1374
+ ``` lua
1375
+ vim .api .nvim_create_autocmd (' ColorScheme' , {
1376
+ pattern = ' *' ,
1377
+ callback = function ()
1378
+ -- Define own colors
1379
+ vim .api .nvim_set_hl (0 , ' @org.agenda.deadline' , { fg = ' #FFAAAA' })
1380
+ vim .api .nvim_set_hl (0 , ' @org.agenda.scheduled' , { fg = ' #AAFFAA' })
1381
+ -- Link to another highlight group
1382
+ vim .api .nvim_set_hl (0 , ' @org.agenda.scheduled_past' , { link = ' Statement' })
1383
+ end
1384
+ })
1330
1385
```
1331
1386
1332
- or you can link it to another highlight group :
1387
+ Or in Vimscript :
1333
1388
1334
1389
``` vim
1390
+ autocmd ColorScheme * call s:setup_org_colors()
1391
+
1335
1392
function! s:setup_org_colors() abort
1336
- hi link OrgAgendaDeadline Error
1337
- hi link OrgAgendaScheduled DiffAdd
1338
- hi link OrgAgendaScheduledPast Statement
1393
+ " Define own colors
1394
+ hi @org.agenda.deadline guifg=#FFAAAA
1395
+ hi @org.agenda.scheduled guifg=#AAFFAA
1396
+ " Link to another highlight group
1397
+ hi link @org.agenda.scheduled_past Statement
1339
1398
endfunction
1340
1399
```
1341
1400
1342
1401
For adding/changing TODO keyword colors see [ org-todo-keyword-faces] ( #org_todo_keyword_faces )
1343
1402
1344
- #### Highlight Groups
1345
-
1346
- * The following highlight groups are based on _ Treesitter_ query results, hence when setting up _ Orgmode_ these
1347
- highlights must be enabled by removing ` disable = {'org'} ` from the default recommended _ Treesitter_ configuration.
1348
-
1349
- * ` OrgTSTimestampActive ` : An active timestamp
1350
- * ` OrgTSTimestampInactive ` : An inactive timestamp
1351
- * ` OrgTSBullet ` : A normal bullet under a header item
1352
- * ` OrgTSPropertyDrawer ` : Property drawer start/end delimiters
1353
- * ` OrgTSDrawer ` : Drawer start/end delimiters
1354
- * ` OrgTSTag ` : A tag for a headline item, shown on the righthand side like ` :foo: `
1355
- * ` OrgTSPlan ` : ` SCHEDULED ` , ` DEADLINE ` , ` CLOSED ` , etc. keywords
1356
- * ` OrgTSComment ` : A comment block
1357
- * ` OrgTSLatex ` : LaTeX block
1358
- * ` OrgTSDirective ` : Blocks starting with ` #+ `
1359
- * ` OrgTSCheckbox ` : The default checkbox highlight, overridden if any of the below groups are specified
1360
- * ` OrgTSCheckboxChecked ` : A checkbox checked with either ` [x] ` or ` [X] `
1361
- * ` OrgTSCheckboxHalfChecked ` : A checkbox checked with ` [-] `
1362
- * ` OrgTSCheckboxUnchecked ` : A empty checkbox
1363
- * ` OrgTSHeadlineLevel1 ` : Headline at level 1
1364
- * ` OrgTSHeadlineLevel2 ` : Headline at level 2
1365
- * ` OrgTSHeadlineLevel3 ` : Headline at level 3
1366
- * ` OrgTSHeadlineLevel4 ` : Headline at level 4
1367
- * ` OrgTSHeadlineLevel5 ` : Headline at level 5
1368
- * ` OrgTSHeadlineLevel6 ` : Headline at level 6
1369
- * ` OrgTSHeadlineLevel7 ` : Headline at level 7
1370
- * ` OrgTSHeadlineLevel8 ` : Headline at level 8
1371
-
1372
- * The following use vanilla _ Vim_ syntax matching, and will work without _ Treesitter_ highlighting enabled.
1373
-
1374
- * ` OrgEditSrcHighlight ` : The highlight for the source content in an _ Org_ buffer while it is being edited in an edit special buffer
1375
- * ` OrgAgendaDeadline ` : A item deadline in the agenda view
1376
- * ` OrgAgendaScheduled ` : A scheduled item in the agenda view
1377
- * ` OrgAgendaScheduledPast ` : A item past its scheduled date in the agenda view
1378
-
1379
1403
### Menu
1380
1404
1381
1405
The menu is used when selecting further actions in ` agenda ` , ` capture ` and ` export ` . Here is an example of the menu you see when opening ` agenda ` :
0 commit comments