Questions tagged [formatting]
is for text formatting and manipulating text attributes. Emacs formatting facilities include adding, changing, and describing fonts, faces, and colors. The complexity of the formatting functions depends on the major mode and customizations. Use this tag for questions about formatting time strings and mode-line also.
122 questions
0 votes
0 answers
140 views
How to change LSP configurable options with Eglot?
I'm using bash-language-server with Eglot. This LSP uses the external shfmt program for code formatting, eglot-format-buffer to be exact. The shfmt tool has a bunch of switches like --case-indent. I ...
0 votes
1 answer
120 views
(org-mode) How can I put a newline between bibliography entries?
This problem has been driving me mad for a couple days now. The basic problem: I would like bibliography entries to be separated by a blank line, rather than right next to each other. Currently I am ...
0 votes
0 answers
83 views
fill-paragraph for Google style docstrings
When editing an existing docstring in Google style you need to call a function like fill-paragraph to cut the long lines while preserving the proper indentation. However fill-paragraph will not work ...
0 votes
0 answers
207 views
how to turn off python formatting in emacs
I have a python program that I edit in emacs. However, sometimes when I save it, it gets re-indented, and in doing so, messes up the indentation of sections, where I have some code and then some ...
3 votes
2 answers
378 views
How to ignore accents (À Â É Ê etc.) when sorting?
When sorting text with Emacs, the result is wrong for accented characters: Always Emerald Yesterday Zoo À la campagne Âge Écarlate Être Here is the result I would like instead: À la campagne Âge ...
0 votes
1 answer
93 views
Building a minor mode which makes buffer appear modified
You are an American in a British company. The company requires all your saved files to use the spelling "colour". You can't bear to look at anything other than "color" so you want ...
0 votes
1 answer
222 views
Disable blacken-mode on certain projects
I have blacken-mode enabled on all python buffers like this: (add-hook 'python-mode-hook (lambda () (blacken-mode 1) ;; other config )) But on some ...
0 votes
2 answers
2k views
Doom - setting code formatter for specific file type
How can I change formatter used for specific file type in doom-emacs format module? So far I've been happy with using mostly doom defaults and haven't gotten into writing custom configurations and ...