From 0ec5575248577cabf459bfd5b1949764df6ef17f Mon Sep 17 00:00:00 2001 From: Howard Abrams Date: Tue, 20 Sep 2022 23:11:29 -0700 Subject: [PATCH] Formatting and bug fixes --- ha-config.org | 16 ++++++---------- ha-org.org | 2 +- 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/ha-config.org b/ha-config.org index 7d3f07c..c083b8d 100644 --- a/ha-config.org +++ b/ha-config.org @@ -930,13 +930,9 @@ Install the [[https://github.com/dajva/rg.el][rg]] package, which builds on the #+begin_src emacs-lisp (use-package rg :config - ;; In case I call (or something else) calls `grep': - (grep-apply-setting 'grep-command "rg") ; -n -H --no-heading -e - ;; Make an interesting Magit-like menu of options, which I don't use much: (rg-enable-default-bindings (kbd "M-R")) - ;; Old habits die hard ... (define-key global-map [remap xref-find-references] 'rg-dwim) @@ -1006,14 +1002,14 @@ Stealing much of this from Spacemacs. "x q" '("fill paragraph" . fill-paragraph) "x p" '("unfill paragraph" . unfill-paragraph)) #+end_src -Unfilling a paragraph joins all the lines in a paragraph into a single line. Taken [[http://www.emacswiki.org/UnfillParagraph][from here]] … I use this all the time: +Unfilling a paragraph joins all the lines in a paragraph into a single line. Taken [[http://www.emacswiki.org/UnfillParagraph][from here]] … I use this all the time: #+begin_src emacs-lisp -(defun unfill-paragraph () - "Convert a multi-line paragraph into a single line of text." - (interactive) - (let ((fill-column (point-max))) - (fill-paragraph nil))) + (defun unfill-paragraph () + "Convert a multi-line paragraph into a single line of text." + (interactive) + (let ((fill-column (point-max))) + (fill-paragraph nil))) #+end_src *** Help Operations While the ~C-h~ is easy enough, I am now in the habit of typing ~SPC h~ instead. diff --git a/ha-org.org b/ha-org.org index 38226e0..5694dc2 100644 --- a/ha-org.org +++ b/ha-org.org @@ -742,7 +742,7 @@ Flagging cliches, weak phrasing and other poor grammar choices. The [[https://github.com/bnbeckwith/writegood-mode][writegood-mode]] is effective at highlighting passive and weasel words, but isn’t integrated into =flycheck=: #+begin_src emacs-lisp :tangle no (use-package writegood-mode - :hook ((org-mode . writegood-mode))) + :hook (org-mode . writegood-mode)) #+end_src And it reports obnoxious messages.