[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org-modern 38d2cef27b 102/105: Improve README.org
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org-modern 38d2cef27b 102/105: Improve README.org |
Date: |
Tue, 15 Apr 2025 13:01:07 -0400 (EDT) |
branch: externals/org-modern
commit 38d2cef27b83bec53de32f711932dcb56acd6448
Author: JD Smith <93749+jdtsmith@users.noreply.github.com>
Commit: GitHub <noreply@github.com>
Improve README.org
---
README.org | 26 ++++++++++++++------------
1 file changed, 14 insertions(+), 12 deletions(-)
diff --git a/README.org b/README.org
index fadd3652ae..9753947dc6 100644
--- a/README.org
+++ b/README.org
@@ -93,7 +93,7 @@ screenshot above after the installation of =org-modern=.
(global-org-modern-mode)
#+end_src
-An alternative setup, using ~use-package~:
+An alternative setup, using ~use-package~ and modifying some of the display
entities:
#+begin_src emacs-lisp
(use-package org-modern
@@ -125,9 +125,11 @@ An alternative setup, using ~use-package~:
Since version 2.0, this package incorporates ~org-modern-indent~, which
provides block bracket styling when ~org-indent~ is enabled, including support
for "bulk-indented" blocks nested within plain lists:
-https://github.com/user-attachments/assets/7ca42ce7-dcfb-4c66-b5f4-1798a4fd4df5
+#+html: <img width="716" alt="image"
src="https://github.com/user-attachments/assets/7ca42ce7-dcfb-4c66-b5f4-1798a4fd4df5"
/>
-*Note*: non-nil ~line-spacing~ is not recommended with ~org-modern-indent~, as
it leads to gaps in the vertical bars drawn to indicate blocks.
+~org-modern-indent~ is enabled by ~org-modern~ by default if you use
~org-indent~; configure ~org-modern-indent-block=nil~ to disable this behavior.
To activate ~org-indent-mode~ in all org files, set ~org-startup-indented=t~.
+
+*Note*: Non-nil ~line-spacing~ is not recommended with ~org-modern-indent~, as
it leads to gaps in the vertical bars drawn to indicate blocks.
* Incompatibilities
@@ -135,7 +137,7 @@
https://github.com/user-attachments/assets/7ca42ce7-dcfb-4c66-b5f4-1798a4fd4df5
- =visual-wrap-prefix-mode= relies on the =wrap-prefix= text property which is
also
used by =org-modern=.
-* Indentation Hints
+* Block Indentation Hints
A few hints for managing indented blocks.
@@ -150,20 +152,20 @@ As an important principle, ~org-modern-indent~ does not
alter the contents of th
#+begin_src org
- This list item contains a:
- sublist, which holds a block:
- [C-c C-,] here
+ [C-c C-,] here
#+end_src
-- **Move flush left**: Note: =M-{= will get you to the start of a block
quickly. =M-\= at block start will move the block's first header line to
column 0. Then =M-S-left= (or =right=) will indent the full block.
-- **Indent rigidly**: =M-h= selects the entire block. Then =C-x TAB= enters
"rigid indent" mode, after which left/right moves the entire block.
-- **Re-indent a block**: If you have a block that is partially aligned,
perhaps with a "hanging end", like so:
+- *Move flush left*: Note: =M-{= will get you to the start of a block quickly.
=M-\= at block start will move the block's first header line to column 0.
Then =M-S-left= (or =right=) will indent the full block.
+- *Indent rigidly*: =M-h= selects the entire block. Then =C-x TAB= enters
"rigid indent" mode, after which left/right moves the entire block.
+- *Re-indent a block*: If you have a block that is partially aligned, perhaps
with a "hanging end", like so:
#+begin_src org
- List 1
- List 2
- ,#+begin_src lang
- foo_lang(x)
- ,#+end_src
+ ,#+begin_src lang
+ foo_lang(x)
+ ,#+end_src
#+end_src
you can simply use =M-S-left/right= at block start (or in fact anywhere on
the block header/footer) to ~org-indent-block~. Note that
~org-src-preserve-indentation=nil~ is an important setting, to allow org to
(re-)indent blocks to respect the local indentation inside list and other
elements. Also note that (from ~org-indent-region~):
@@ -180,7 +182,7 @@ The default ~fixed-pitch~ font (from which ~org-meta-line~
inherits) has line sp
(set-face-attribute 'fixed-pitch nil :family "Hack" :height 1.0) ; or whatever
font family
#+end_src
-### The bracket style
+*** The bracket style
If you'd like a different face than ~org-meta-line~ for the "bracket",
configure the ~org-modern-indent-bracket-line~ face.
- [elpa] externals/org-modern 30cdd1bcf3 061/105: README: recommend static org-modern-block-name, (continued)
- [elpa] externals/org-modern 30cdd1bcf3 061/105: README: recommend static org-modern-block-name, ELPA Syncer, 2025/04/15
- [elpa] externals/org-modern 8702acf291 064/105: use org-indent-post-buffer-init-functions to init, if available, ELPA Syncer, 2025/04/15
- [elpa] externals/org-modern 8afea0fec4 065/105: disable org-modern-indent if 5 init tries exceeded in a buffer, ELPA Syncer, 2025/04/15
- [elpa] externals/org-modern 0def0388c4 071/105: block indent: only add org-indent face to prefix length in wrap, ELPA Syncer, 2025/04/15
- [elpa] externals/org-modern dd5ebe184d 090/105: Remove field since it interferes with org-element, ELPA Syncer, 2025/04/15
- [elpa] externals/org-modern 8fcf7b29a4 091/105: init when mode called interactively, ELPA Syncer, 2025/04/15
- [elpa] externals/org-modern 4b3838253c 070/105: Small README improvements, ELPA Syncer, 2025/04/15
- [elpa] externals/org-modern ce4df70dbc 083/105: Factor out end-re, ELPA Syncer, 2025/04/15
- [elpa] externals/org-modern 42fcc6af54 089/105: -init -> init, make command, ELPA Syncer, 2025/04/15
- [elpa] externals/org-modern 1a1c9785c6 088/105: draw-block: simplify property modification + add indent field, ELPA Syncer, 2025/04/15
- [elpa] externals/org-modern 38d2cef27b 102/105: Improve README.org,
ELPA Syncer <=
- [elpa] externals/org-modern e0f0b01c69 022/105: Docstring, ELPA Syncer, 2025/04/15
- [elpa] externals/org-modern a3e8b44837 017/105: Update README.md, ELPA Syncer, 2025/04/15
- [elpa] externals/org-modern 9973bd3b91 093/105: Bump version, ELPA Syncer, 2025/04/15
- [elpa] externals/org-modern 550041f9fb 023/105: README tweaks, ELPA Syncer, 2025/04/15
- [elpa] externals/org-modern fc0c3fcb5d 043/105: Update README.md, ELPA Syncer, 2025/04/15
- [elpa] externals/org-modern 172957a61b 028/105: Bump minor version, ELPA Syncer, 2025/04/15
- [elpa] externals/org-modern b5066e0627 066/105: README: Use [!NOTE], ELPA Syncer, 2025/04/15
- [elpa] externals/org-modern ad60fa2f60 063/105: block-bracket-flush: tweak prefix layout, only one end bracket, ELPA Syncer, 2025/04/15
- [elpa] externals/org-modern b5c87056e0 075/105: Expand variables, ELPA Syncer, 2025/04/15
- [elpa] externals/org-modern f2b859bc53 074/105: Update copyright+version, ELPA Syncer, 2025/04/15