[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/org-superstar 7657a777fb 129/162: Adding inlinetask demos.
From: |
Stefan Kangas |
Subject: |
[nongnu] elpa/org-superstar 7657a777fb 129/162: Adding inlinetask demos. |
Date: |
Fri, 31 Dec 2021 19:35:37 -0500 (EST) |
branch: elpa/org-superstar
commit 7657a777fba8eecb9c5d700f849d24d5cce76e10
Author: D. Williams <d.williams@posteo.net>
Commit: D. Williams <d.williams@posteo.net>
Adding inlinetask demos.
---
DEMO.org | 59 ++++++++++++++++++++++++++++++++++++++++----------
demos/inline.png | Bin 0 -> 78312 bytes
demos/inline_term.png | Bin 0 -> 71933 bytes
3 files changed, 47 insertions(+), 12 deletions(-)
diff --git a/DEMO.org b/DEMO.org
index ddf532bb30..b525bddbba 100644
--- a/DEMO.org
+++ b/DEMO.org
@@ -15,9 +15,9 @@ Emacs (~emacs -q~) and only do the absolute minimum to set up
Superstar
automatically.
#+BEGIN_SRC emacs-lisp
- (add-hook 'org-mode-hook
- (lambda ()
- (org-superstar-mode 1)))
+ (add-hook 'org-mode-hook
+ (lambda ()
+ (org-superstar-mode 1)))
#+END_SRC
** Graphical Session
@@ -27,8 +27,9 @@ automatically.
* LaTeX-style headings
As the title suggests, this setup provides a quick alternative to
- the Emacs typical [[https://www.emacswiki.org/emacs/AngryFruitSalad][angry
fruit salad look]], replacing it with a more
+ the Emacs-typical [[https://www.emacswiki.org/emacs/AngryFruitSalad][angry
fruit salad look]], replacing it with a more
in-print style.
+
#+BEGIN_SRC emacs-lisp
;;; Titles and Sections
;; hide #+TITLE:
@@ -53,6 +54,7 @@ automatically.
:foreground 'unspecified
:inherit 'org-level-8)
+ ;;; Basic Setup
;; Auto-start Superstar with Org
(add-hook 'org-mode-hook
(lambda ()
@@ -66,13 +68,13 @@ automatically.
* Customized Bullets and Terminal Fallback
This time we want all of the above but a little more personalized.
- First off, lets make bullets a little more chunky. Mind that the
+ First off, let's make bullets a little more chunky. Mind that the
height we provide for bullet faces is not the /actual/ height of a
- bullet, but its height /relative to/ its surroundings. Additionally,
- let's hide the leading stars for terminal, as the default leader
- does not look all that good in my chosen terminal font. I make use
- of the fact that ~org-superstar-leading-fallback~ can be set to the
- space character. This has the nice advantage over
+ bullet, but its height /relative to its surroundings/. Additionally,
+ let's hide the leading stars for terminal sessions, as the default
+ leader does not look all that good in my chosen terminal font. I
+ make use of the fact that ~org-superstar-leading-fallback~ can be set
+ to the space character. This has the nice advantage over
~org-hide-leading-stars~ that it does not just "paint over" the
asterisks, but makes them completely indistinguishable from white
space, neat!
@@ -99,7 +101,40 @@ automatically.
* Org Inline Tasks
Inline tasks behave as you would expect them to, for the most part.
They have two bullets instead of one, but are otherwise treated the
- same as regular headlines by Org Superstar.
+ same as regular headlines by Org Superstar, meaning
+ ~org-superstar-headline-bullets-list~ controls the bullet used as if
+ it were a regular headline. If ~org-inlinetask-show-first-star~ is
+ non-nil, you can customize the additional marker. Just like with
+ the rest of Superstar's decorations, you can more or less fully
+ control how it looks, with independent settings for graphical and
+ terminal displays and a dedicated face, should you find the default
+ of using ~org-warn~ a little\dots unsubtle. We again use the LaTeX setup
+ as a base and add a few tweaks.
+ #+BEGIN_SRC emacs-lisp
+ (require 'org-inlinetask)
+ (setq org-inlinetask-show-first-star t)
+ ;; Less gray please.
+ (set-face-attribute 'org-inlinetask nil
+ :foreground nil
+ :inherit 'bold)
+ (with-eval-after-load 'org-superstar
+ (set-face-attribute 'org-superstar-first nil
+ :foreground "#9000e1"))
+ ;; Set different bullets, with one getting a terminal fallback.
+ (setq org-superstar-headline-bullets-list
+ '("◉" ("🞛" ?◈) "○" "▷"))
+ ;; Set up a different marker for graphic display.
+ (setq org-superstar-first-inlinetask-bullet ?🞸)
+ ;; Stop cycling bullets to emphasize hierarchy of headlines.
+ (setq org-superstar-cycle-headline-bullets nil)
+ ;; A simple period works fine, too.
+ (setq org-superstar-leading-fallback ?.)
+ #+END_SRC
+
+** Graphical Session
+[[file:demos/inline.png]]
+** Terminal Session
+[[file:demos/inline_term.png]]
-# LocalWords: demos DejaVu inline Org
+# LocalWords: DejaVu inline Org LaTeX
diff --git a/demos/inline.png b/demos/inline.png
new file mode 100644
index 0000000000..6f99254e84
Binary files /dev/null and b/demos/inline.png differ
diff --git a/demos/inline_term.png b/demos/inline_term.png
new file mode 100644
index 0000000000..2a36963609
Binary files /dev/null and b/demos/inline_term.png differ
- [nongnu] elpa/org-superstar d94e141c36 069/162: Added a REVIEW marker., (continued)
- [nongnu] elpa/org-superstar d94e141c36 069/162: Added a REVIEW marker., Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar 8a6215a10f 084/162: Merge pull request #6 from progfolio/fix-org-superstar-restart-docstring, Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar 092de74fb9 099/162: Fixed typo in README., Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar f75220cd2d 089/162: Downgrade version requirements, Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar 3fbfc0a47e 092/162: Merge pull request #11 from integral-dw/issue-10, Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar a995899117 115/162: Merge branch 'master' of github.com:integral-dw/org-superstar-mode, Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar 4897c333a8 105/162: Version bump: Update documentation and README accordingly to reflect new feature., Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar 026c54f1bf 100/162: Version bump: Add new option allowing a more efficient (but sloppy) display of list items, Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar 15b9c32eae 112/162: Version Bump., Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar 4b4ddd7c39 122/162: Honor ‘org-inlinetask-show-first-star’., Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar 7657a777fb 129/162: Adding inlinetask demos.,
Stefan Kangas <=
- [nongnu] elpa/org-superstar 94f35c20f8 135/162: Final cleanup before tagging, Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar 979d2dd199 161/162: Merge pull request #34 from taquangtrung/master, Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar 715a9681d3 087/162: Removing inconsistent use of apostrophe from README., Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar da5c2208e9 085/162: Adding MELPA Stable badge, Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar 0d18d5ab99 090/162: Updating README to address issue #5., Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar 9c9c13280d 097/162: Added (tested) example for programmatically toggling lightweight-mode on startup., Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar e225b78a5c 113/162: Updating README to reflect version change., Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar abb8e863a1 109/162: Fix: Make org-superstar-headline-p non-interactive, Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar 2eed7bd4fe 098/162: Removed redundant sentence., Stefan Kangas, 2021/12/31
- [nongnu] elpa/org-superstar 09ddc28383 108/162: Fixed an unescaped paren in docstring., Stefan Kangas, 2021/12/31