emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Feature request: add leading zeroes to align ordered lists with indexes of different length
@ 2019-07-13 13:10 Davi Ramos
  2019-07-13 20:09 ` Samuel Wales
  0 siblings, 1 reply; 4+ messages in thread
From: Davi Ramos @ 2019-07-13 13:10 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 8995 bytes --]

#### ISSUE ####

When a list has indexes with different lengths they become unaligned
(image: http://i.imgur.com/ysnTmY2.png). If I add the leading zeroes
manually, Org deletes them when I update the list (by running
`org-ctrl-c-ctrl-c`, for example). How could I configure to add the zeroes
automatically, or at least respect the ones I add manually?

#### ORG CONFIGURATIONS #####

Emacs  : GNU Emacs 27.0.50 (build 2, x86_64-pc-linux-gnu, GTK+ Version
3.22.11)
 of 2019-07-10
Package: Org mode version 9.2.3 (9.2.3-elpa @
/home/george/.emacs.d/elpa/org-9.2.3/)

current state:
==============
(setq
 org-src-mode-hook '(org-src-babel-configure-edit-buffer
                     org-src-mode-configure-edit-buffer my/org-src-hooks)
 org-agenda-tags-column -80
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-global-properties '(("Effort_ALL" .
                          "0:05 0:10 0:15 0:25 0:30 0:45 1:00 2:00 4:00
6:00")
                         )
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 org-babel-no-eval-on-ctrl-c-ctrl-c t
 org-refile-targets '((nil :maxlevel . 1))
 org-html-format-inlinetask-function
'org-html-format-inlinetask-default-function
 org-pretty-entities t
 org-edit-src-content-indentation 1
 org-odt-format-headline-function 'org-odt-format-headline-default-function
 org-agenda-files '("/home/george/org/Agenda/agenda.org"
                    "/home/george/org/Agenda/contatos.org"
                    "/home/george/org/Agenda/estudos.org"
                    "/home/george/org/Agenda/leituras.org"
                    "/home/george/org/Agenda/projetos.org"
                    "/home/george/org/Agenda/saude.org"
                    "/home/george/org/Agenda/writing.org")
 org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default
 org-clock-report-include-clocking-task t
 org-modules '(org-w3m org-bbdb org-bibtex org-docview org-gnus org-info
org-irc
               org-mhe org-rmail org-eww org-habit)
 org-blocker-hook '(org-block-todo-from-checkboxes)
 org-archive-location "~/org/Info/.archive.org::* From %s"
 org-mode-hook '(#[0 "\301\211 \207"
                   [imenu-create-index-function org-imenu-get-tree] 2]
                 org-tempo-setup evil-org-mode
                 #[0 "\300\301\302\303\304$\207"
                   [add-hook change-major-mode-hook org-show-all append
local] 5]
                 #[0 "\300\301\302\303\304$\207"
                   [add-hook change-major-mode-hook
org-babel-show-result-all
                    append local]
                   5]
                 org-babel-result-hide-spec org-babel-hide-all-hashes
                 my/org-mode-hooks)
 org-odt-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME CONTENTS)"]
 org-outline-path-complete-in-steps nil
 org-archive-hook '(org-attach-archive-delete-maybe)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-src-fontify-natively nil
 org-startup-indented t
 org-clock-history-length 10
 org-agenda-skip-timestamp-if-done t
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-bibtex-headline-format-function #[257 "\300 \236A\207" [:title] 3
"\n\n(fn ENTRY)"]
 org-latex-format-drawer-function #[514 "\207" [] 3 "\n\n(fn _ CONTENTS)"]
 org-babel-pre-tangle-hook '(save-buffer)
 org-file-apps '((auto-mode . emacs) ("\\.mm\\'" . default)
                 ("\\.x?html?\\'" . default) ("\\.jpg\\'" . "viewnior %s")
                 ("\\.mp4\\'" . "vlc %s") ("\\.pdf\\'" . default))
 org-tab-first-hook '(org-babel-hide-result-toggle-maybe
                      org-babel-header-arg-expand)
 org-babel-load-languages '((python . t))
 org-hide-emphasis-markers t
 org-link-file-path-type 'relative
 org-clock-in-resume t
 org-ascii-format-drawer-function #[771 " \207" [] 4 "\n\n(fn NAME CONTENTS
WIDTH)"]
 org-ellipsis "."
 org-src-lang-modes '(("i3" . i3wm-config) ("C" . c) ("C++" . c++)
                      ("asymptote" . asy) ("bash" . sh) ("beamer" . latex)
                      ("calc" . fundamental) ("cpp" . c++) ("ditaa" .
artist)
                      ("dot" . fundamental) ("elisp" . emacs-lisp)
                      ("ocaml" . tuareg) ("screen" . shell-script) ("shell"
. sh)
                      ("sqlite" . sql))
 org-src-preserve-indentation t
 org-fontify-done-headline t
 org-occur-hook '(org-first-headline-recenter)
 org-agenda-mode-hook '((lambda nil (setq display-line-numbers nil)
                         (setq truncate-lines t))
                        )
 org-log-into-drawer t
 org-edit-src-auto-save-idle-delay 1
 org-enforce-todo-checkbox-dependencies t
 org-lowest-priority 73
 org-cycle-hook nil
 org-todo-keywords '((sequence "TODO(t!)" "STARTED(s!)" "|" "DONE(d!)"))
 org-speed-command-hook '(org-speed-command-activate
                          org-babel-speed-command-activate)
 org-tags-column -79
 org-capture-mode-hook '((lambda nil (evil-insert-state)
                          (evil-window-move-very-bottom))
                         )
 org-clock-persist-file "/home/george/.emacs.d/var/org/clock-persist.el"
 org-replace-disputed-keys t
 org-odt-format-inlinetask-function
'org-odt-format-inlinetask-default-function
 org-default-priority 65
 org-babel-tangle-lang-exts '(("python" . "py") ("emacs-lisp" . "el")
                              ("elisp" . "el"))
 org-return-follows-link t
 org-publish-timestamp-directory "/home/george/.emacs.d/var/org/timestamps/"
 org-export-with-archived-trees nil
 org-refile-allow-creating-parent-nodes 'confirm
 org-clock-sound "~/Music/Sounds/cuckoo.au"
 org-src-ask-before-returning-to-edit-buffer nil
 org-id-locations-file "/home/george/.emacs.d/var/org/id-locations.el"
 org-confirm-shell-link-function 'yes-or-no-p
 org-link-parameters '(("id" :follow org-id-open)
                       ("eww" :follow eww :store org-eww-store-link)
                       ("rmail" :follow org-rmail-open :store
org-rmail-store-link)
                       ("mhe" :follow org-mhe-open :store
org-mhe-store-link)
                       ("irc" :follow org-irc-visit :store
org-irc-store-link
                        :export org-irc-export)
                       ("info" :follow org-info-open :export
org-info-export :store
                        org-info-store-link)
                       ("gnus" :follow org-gnus-open :store
org-gnus-store-link)
                       ("docview" :follow org-docview-open :export
                        org-docview-export :store org-docview-store-link)
                       ("bibtex" :follow org-bibtex-open :store
                        org-bibtex-store-link)
                       ("bbdb" :follow org-bbdb-open :export org-bbdb-export
                        :complete org-bbdb-complete-link :store
org-bbdb-store-link)
                       ("w3m" :store org-w3m-store-link)
                       ("pdfview" :follow org-pdfview-open :complete
                        org-pdfview-complete-link :store
org-pdfview-store-link)
                       ("file+sys") ("file+emacs")
                       ("doi" :follow org--open-doi-link)
                       ("elisp" :follow org--open-elisp-link)
                       ("file" :complete org-file-complete-link)
                       ("ftp" :follow
                        (lambda (path) (browse-url (concat "ftp:" path))))
                       ("help" :follow org--open-help-link)
                       ("http" :follow
                        (lambda (path) (browse-url (concat "http:" path))))
                       ("https" :follow
                        (lambda (path) (browse-url (concat "https:" path))))
                       ("mailto" :follow
                        (lambda (path) (browse-url (concat "mailto:"
path))))
                       ("news" :follow
                        (lambda (path) (browse-url (concat "news:" path))))
                       ("shell" :follow org--open-shell-link))
 org-edit-src-persistent-message nil
 org-agenda-skip-scheduled-if-done t
 org-bullets-bullet-list '("◐" "◑" "◒" "◓" "☉" "◉")
 org-latex-format-headline-function
'org-latex-format-headline-default-function
 org-latex-format-inlinetask-function
'org-latex-format-inlinetask-default-function
 org-tab-before-tab-emulation-hook '(org-tempo-complete-tag)
 org-html-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME CONTENTS)"]
 org-image-actual-width nil
 org-export-with-toc nil
 org-html-format-headline-function
'org-html-format-headline-default-function
 org-src-window-setup 'current-window
 org-pretty-entities-include-sub-superscripts nil
 org-confirm-babel-evaluate nil
 org-deadline-warning-days 7
 org-link-frame-setup '((file . find-file))
 org-bookmark-names-plist nil
 org-clock-clocked-in-display t
 org-use-speed-commands t
 org-agenda-skip-deadline-if-done t
 )

[-- Attachment #2: Type: text/html, Size: 11593 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Feature request: add leading zeroes to align ordered lists with indexes of different length
  2019-07-13 13:10 Feature request: add leading zeroes to align ordered lists with indexes of different length Davi Ramos
@ 2019-07-13 20:09 ` Samuel Wales
  2019-07-15  8:52   ` Davi Ramos
  0 siblings, 1 reply; 4+ messages in thread
From: Samuel Wales @ 2019-07-13 20:09 UTC (permalink / raw)
  To: Davi Ramos; +Cc: emacs-orgmode

would spaces work for you too?

-- 
The Kafka Pandemic

What is misopathy?
https://thekafkapandemic.blogspot.com/2013/10/why-some-diseases-are-wronged.html

The disease DOES progress. MANY people have died from it. And ANYBODY
can get it at any time.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Feature request: add leading zeroes to align ordered lists with indexes of different length
  2019-07-13 20:09 ` Samuel Wales
@ 2019-07-15  8:52   ` Davi Ramos
  2019-10-07  3:20     ` stardiviner
  0 siblings, 1 reply; 4+ messages in thread
From: Davi Ramos @ 2019-07-15  8:52 UTC (permalink / raw)
  To: Samuel Wales; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 428 bytes --]

I don't think it would be as visually pleasant, but I would be grateful for
it.

On Sat, Jul 13, 2019 at 5:09 PM Samuel Wales <samologist@gmail.com> wrote:

> would spaces work for you too?
>
> --
> The Kafka Pandemic
>
> What is misopathy?
>
> https://thekafkapandemic.blogspot.com/2013/10/why-some-diseases-are-wronged.html
>
> The disease DOES progress. MANY people have died from it. And ANYBODY
> can get it at any time.
>

[-- Attachment #2: Type: text/html, Size: 870 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Feature request: add leading zeroes to align ordered lists with indexes of different length
  2019-07-15  8:52   ` Davi Ramos
@ 2019-10-07  3:20     ` stardiviner
  0 siblings, 0 replies; 4+ messages in thread
From: stardiviner @ 2019-10-07  3:20 UTC (permalink / raw)
  To: emacs-orgmode; +Cc: Samuel Wales


This can use similar solution like ~org-num-mode~ which is already built-in of Org
Mode. You can check it out. Might you can share it after you implemented an
add-on.

Davi Ramos <davilopes.cine@gmail.com> writes:

> I don't think it would be as visually pleasant, but I would be grateful for it.
>
> On Sat, Jul 13, 2019 at 5:09 PM Samuel Wales <samologist@gmail.com> wrote:
>
>  would spaces work for you too?
>
>  -- 
>  The Kafka Pandemic
>
>  What is misopathy?
>  https://thekafkapandemic.blogspot.com/2013/10/why-some-diseases-are-wronged.html
>
>  The disease DOES progress. MANY people have died from it. And ANYBODY
>  can get it at any time.


-- 
[ stardiviner ]
       I try to make every word tell the meaning what I want to express.

       Blog: https://stardiviner.github.io/
       IRC(freenode): stardiviner, Matrix: stardiviner
       GPG: F09F650D7D674819892591401B5DF1C95AE89AC3
      

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-10-07  3:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-13 13:10 Feature request: add leading zeroes to align ordered lists with indexes of different length Davi Ramos
2019-07-13 20:09 ` Samuel Wales
2019-07-15  8:52   ` Davi Ramos
2019-10-07  3:20     ` stardiviner

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).