[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org-modern 20a99f67e9 044/105: README: improve block al
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org-modern 20a99f67e9 044/105: README: improve block alignment suggestions |
Date: |
Tue, 15 Apr 2025 13:00:58 -0400 (EDT) |
branch: externals/org-modern
commit 20a99f67e955b054a13da15e7b8286ebec741d6f
Author: JD Smith <93749+jdtsmith@users.noreply.github.com>
Commit: JD Smith <93749+jdtsmith@users.noreply.github.com>
README: improve block alignment suggestions
---
README.md | 27 ++++++++++++++++++++++-----
1 file changed, 22 insertions(+), 5 deletions(-)
diff --git a/README.md b/README.md
index 56c715b55c..63b3138b1f 100644
--- a/README.md
+++ b/README.md
@@ -8,6 +8,7 @@ This small package approximately reproduces the block styling
of `org-modern` wh
<img align="center" width=700
src=https://user-images.githubusercontent.com/93749/224204382-091fcd76-3ad0-467e-9525-287ae80e93c6.png>
+
## Updates
- v0.1 features a complete re-write to use font-lock directly. This has a few
benefits:
@@ -34,11 +35,27 @@ Also, be sure to enable `org-indent` (see the variable
`org-startup-indented`).
### Bulk-indented blocks (e.g. within lists):
-Bulk-indented blocks can have "real" (space/tab) indent applied and managed by
org. This extra indentation is appled by org on _top_ of the (fake,
prefix-based) indentation used by org-indent. To nest blocks within such
indented content, e.g. in plain list items, you only have to begin the
`#+begin` at the same column as the list element's text. To help achieve this,
here are a few ways to move blocks around in terms of their indentation:
-
-- **Start things right**: Hit return after your last line of text (e.g in a
list item), then immediately hit `C-c C,` to create the desired block. It will
be indented at the right level.
-- **Move flush left**: `M-{` gets you to the start of a block quickly. `M-\`
there block will move the blocks first header to the very left. Then
`M-S-left` (or `right`) will indent the full block.
`org-src-preserve-indentation=t` will help with indenting `example` blocks.
-- **Indent rigidly**: `M-h` selects the entire block. Then `C-x TAB` enters
"rigid indent" mode, where left/right moves the entire block.
+Bulk-indented blocks have "real" (space/tab) indent applied and managed by
org. This extra indentation is appled by org on _top_ of the (fake,
prefix-based) indentation used by org-indent. To nest blocks properly within
such indented content, e.g. in plain list items, you only have to begin the
`#+begin` at the same level as the list element's text.
+
+As an important principle, `org-modern-indent` does not alter the contents of
the text in your org documents, not even indentation. It just styles what is
there. To help achieve proper block alignment, here are a few ways to alter
blocks indentation:
+
+- **Start things right**: Hit return after your last line of text (e.g in a
list item), then immediately hit `C-c C,` to create the desired block. It will
be indented at the right level:
+ ```org
+ - This list item contains a:
+ - sublist, which holds a block:
+ [C-c C-,] here
+ ```
+- **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.
`org-src-preserve-indentation=t` will help with indenting `example` blocks
(where org considers whitespace significant).
+- **Indent rigidly** `M-h` selects the entire block. Then `C-x TAB` enters
"rigid indent" mode, where left/right moves the entire block.
+- **Fix a block** If you have a block with a mis-aligned or "hanging end",
like so:
+ ```org
+ - List 1
+ - List 2
+ #+begin_src lang
+ foo_lang(x)
+ #+end_src
+ ```
+ you can simply use `M-S-left/right` at block start to `org-indent-block`.
### Font spacing
- [elpa] externals/org-modern updated (3cc432dc99 -> 8cad2c3d83), ELPA Syncer, 2025/04/15
- [elpa] externals/org-modern f27c48fccb 006/105: Update README.md, ELPA Syncer, 2025/04/15
- [elpa] externals/org-modern 1d020fcda0 002/105: Initial import, ELPA Syncer, 2025/04/15
- [elpa] externals/org-modern 1e34e97efe 011/105: Does not require org-modern (use with or without), ELPA Syncer, 2025/04/15
- [elpa] externals/org-modern 17860297fc 012/105: Mention :straight/:load-path and related packages, ELPA Syncer, 2025/04/15
- [elpa] externals/org-modern baad0b6bde 020/105: Docs: hook to org-indent-mode instead of org-mode, ELPA Syncer, 2025/04/15
- [elpa] externals/org-modern 20a99f67e9 044/105: README: improve block alignment suggestions,
ELPA Syncer <=
- [elpa] externals/org-modern 8710dada43 092/105: beg-end: simplify skipping post-blank lines, ELPA Syncer, 2025/04/15
- [elpa] externals/org-modern 17068a51dc 047/105: refresh timer: run-at-time instead of idle, ELPA Syncer, 2025/04/15
- [elpa] externals/org-modern b8f3b2e476 081/105: Update README.md, ELPA Syncer, 2025/04/15
- [elpa] externals/org-modern 52b46c6ecd 080/105: Merge pull request #19 from btobolaski/patch-1, ELPA Syncer, 2025/04/15
- [elpa] externals/org-modern fe226e8bc1 104/105: Move README indent section, do not yet bump version, ELPA Syncer, 2025/04/15
- [elpa] externals/org-modern a462be576c 101/105: Merge org-modern-indent README and ChangeLog into org-modern's, ELPA Syncer, 2025/04/15
- [elpa] externals/org-modern e436abc3d4 009/105: Treat quote and verse blocks as well, ELPA Syncer, 2025/04/15
- [elpa] externals/org-modern 4e71fd3069 007/105: Discuss line-spacing and need for indent, ELPA Syncer, 2025/04/15
- [elpa] externals/org-modern 9bbe591c58 008/105: Store set-line-properties function def on load, ELPA Syncer, 2025/04/15
- [elpa] externals/org-modern a2deeae174 014/105: Update README.md, ELPA Syncer, 2025/04/15