summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--itches/emacs/tracker.org52
1 files changed, 51 insertions, 1 deletions
diff --git a/itches/emacs/tracker.org b/itches/emacs/tracker.org
index f6e80f7..b27ba00 100644
--- a/itches/emacs/tracker.org
+++ b/itches/emacs/tracker.org
@@ -273,6 +273,25 @@ some point.
:Role: author
:PatchApplied: t
:END:
+*** Ibuffer
+**** TODO Elide with "…" if displayable
+**** TODO Add human-readable size
+With summary:
+#+begin_src elisp
+(define-ibuffer-column size-hr
+ (:name "Size"
+ :summarizer
+ (lambda (strings)
+ (file-size-human-readable
+ (apply '+ (mapcar (lambda (s)
+ (get-text-property (1- (length s)) 'ibuffer-size s))
+ strings)))))
+ (let ((sz (buffer-size buffer)))
+ (propertize (file-size-human-readable sz) 'ibuffer-size sz)))
+#+end_src
+
+While at it, use this ~propertize~ trick to get rid of the "ewww"
+comment in ~define-ibuffer-column size~.
*** Org
**** DONE [[orgmode:877efbgi4i.fsf@gmail.com]] Binding org-insert-todo-heading to M-S-RET
:PROPERTIES:
@@ -337,6 +356,36 @@ Adding =\\[.\\]= to the regexp used in org-list-item-body-column
allows "ipsum" to be aligned below "lorem".
**** TODO Prevent ~#+end_src~ background from extending to end-of-line when folded
*** Programming modes
+**** ~conf-mode~
+***** TODO Tweak ~javaprop~ comments
+As per [[https://docs.oracle.com/javase/10/docs/api/java/util/Properties.html#load(java.io.Reader)][the rationale]]:
+#+begin_src diff
+diff --git a/lisp/textmodes/conf-mode.el b/lisp/textmodes/conf-mode.el
+index 57ec8a0428..91aabfb6d2 100644
+--- a/lisp/textmodes/conf-mode.el
++++ b/lisp/textmodes/conf-mode.el
+@@ -140,8 +140,7 @@ conf-unix-mode-syntax-table
+
+ (defvar conf-javaprop-mode-syntax-table
+ (let ((table (make-syntax-table conf-unix-mode-syntax-table)))
+- (modify-syntax-entry ?/ ". 124" table)
+- (modify-syntax-entry ?* ". 23b" table)
++ (modify-syntax-entry ?! "<" table)
+ table)
+ "Syntax table in use in Java properties buffers.")
+
+@@ -487,7 +486,7 @@ conf-javaprop-mode
+ (conf-mode-initialize "#" 'conf-javaprop-font-lock-keywords)
+ (setq-local conf-assignment-column conf-javaprop-assignment-column)
+ (setq-local conf-assignment-regexp ".+?\\([ \t]*[=: \t][ \t]*\\|$\\)")
+- (setq-local comment-start-skip "\\(?:#+\\|/[/*]+\\)\\s *")
++ (setq-local comment-start-skip "^[ \t]*\\(?:#+\\|!+\\)\\s *")
+ (setq-local imenu-generic-expression
+ '(("Parameters" "^[ \t]*\\(.+?\\)[=: \t]" 1))))
+
+
+#+end_src
+
**** ~sh-mode~
***** TODO Tweak indentation of continuation lines
Attempted to piggyback on Dario Gjorgjevski's [[bug:44592]] to fix these cases:
@@ -403,9 +452,10 @@ Andrea's [[https://akrl.sdf.org/gccemacs.html][progress page]].
Fixed by Andrea (see update 9 on his [[https://akrl.sdf.org/gccemacs.html][progress page]]).
* ELPA
** adaptive-wrap
-*** TODO [[bug:41810]] Fontify wrap-prefix
+*** DONE [[bug:41810]] Fontify wrap-prefix
:PROPERTIES:
:Role: author
+:PatchApplied: t
:END:
** debbugs
*** DONE [[bug:38551]] bind to RET rather than return