Formatting and bug fixes
This commit is contained in:
parent
f9b4789199
commit
0ec5575248
2 changed files with 7 additions and 11 deletions
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in a new issue