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
|
#+begin_src emacs-lisp
|
||||||
(use-package rg
|
(use-package rg
|
||||||
:config
|
: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:
|
;; Make an interesting Magit-like menu of options, which I don't use much:
|
||||||
(rg-enable-default-bindings (kbd "M-R"))
|
(rg-enable-default-bindings (kbd "M-R"))
|
||||||
|
|
||||||
|
|
||||||
;; Old habits die hard ...
|
;; Old habits die hard ...
|
||||||
(define-key global-map [remap xref-find-references] 'rg-dwim)
|
(define-key global-map [remap xref-find-references] 'rg-dwim)
|
||||||
|
|
||||||
|
@ -1006,8 +1002,8 @@ Stealing much of this from Spacemacs.
|
||||||
"x q" '("fill paragraph" . fill-paragraph)
|
"x q" '("fill paragraph" . fill-paragraph)
|
||||||
"x p" '("unfill paragraph" . unfill-paragraph))
|
"x p" '("unfill paragraph" . unfill-paragraph))
|
||||||
#+end_src
|
#+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
|
#+begin_src emacs-lisp
|
||||||
(defun unfill-paragraph ()
|
(defun unfill-paragraph ()
|
||||||
"Convert a multi-line paragraph into a single line of text."
|
"Convert a multi-line paragraph into a single line of text."
|
||||||
|
|
|
@ -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=:
|
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
|
#+begin_src emacs-lisp :tangle no
|
||||||
(use-package writegood-mode
|
(use-package writegood-mode
|
||||||
:hook ((org-mode . writegood-mode)))
|
:hook (org-mode . writegood-mode))
|
||||||
#+end_src
|
#+end_src
|
||||||
And it reports obnoxious messages.
|
And it reports obnoxious messages.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue