Questions tagged [style]
18 questions
20
votes
2 answers
When should sharp quotes be used?
I see sharp quotes being used in other people's eLisp code, and I use them myself, but I'm not completely clear on when they are appropriate and when not.
Could anyone clarify on exactly when it's appropriate to use sharp quotes and when ordinary…

izkon
- 1,798
- 10
- 23
4
votes
2 answers
There's a way to use emacs like MS Word, to make text permanently colored, stylized, etc...?
I'm totally new to the wonderful world of Emacs. I started to use it some weeks ago and i'm find myself to use it more and more... I would like to use it not only as a code editor, but also as a word processor like MS Word, Apple Pages, etc,…

wing
- 123
- 7
3
votes
1 answer
Extra indentation for argument lists beginning on a new line
I'm fine-tuning my C++ style using c-add-style, but I've reached an impasse where I cannot convince Emacs to (extra) indent arguments where the first argument starts on a new line.
When I'm forced to start argument lists on a new line I prefer to…

Caterpillar
- 274
- 1
- 8
3
votes
1 answer
Update cc-style to use a mix of tabs and spaces, depending on context?
I'm looking for a way to mix tabs and spaces in my cc-styles.
Whilst I question the sanity of this coding style, and wouldn't ever choose to use it had I the choice (seems other people share my view), in this instance I don't have a choice.
My…

Steve Lorimer
- 545
- 4
- 13
2
votes
1 answer
Org-ref, Exporting org file to HTML with its style exactly same as a specific scientific journal
I've been writing articles with Google Docs and Zotero. Recently, I tried Org-mode with Org-ref package, but the output was not so good.
My Problems:
The citation is verbose without any rule. I expected it will be concisely expressed in numbers,…

Larynx
- 123
- 3
2
votes
2 answers
image-dired: Change thickness of cursor
On a hires screen I find it really hard to see on which image the cursor currently is, because the rectangle around the image is very thin. Is it possible to increase the line width of that rectangle?
Already I looked through customization options,…

feklee
- 1,029
- 5
- 17
2
votes
0 answers
Export org-mode code blocks with minted style
I am trying to export org-mode source blocks to pdf via Latex and I use minted to get syntax highlighting. My org file looks like this:
#+latex_header: \usepackage[utf8]{inputenc} %% For unicode chars
#+latex_header: \usepackage{minted} …

n1k31t4
- 669
- 8
- 18
2
votes
1 answer
how to manage elint dragging in lots of .gz files
When I invoke elint-current-buffer on a buffer of Lisp code, Emacs starts dragging in 75 !! compressed .el.gz files, leaving me with a huge pile of unwanted active buffers containing those files.
Is there any way to set a config option (or do…

Kevin
- 1,308
- 8
- 20
1
vote
1 answer
Completion to set style
I have the following function, where I would like to use completion to set the style. But the way I have done does not reset the style using M-x rk-bracemk-companion.
(defcustom rk-bracemk-companion-style
'("parenthesis" "expression"…

Dilna
- 1,173
- 3
- 10
1
vote
1 answer
c-set-style: Error loading guessed style
My company has very specific indentation rules for C code. I want to create a style from those rules, and have it load at startup.
Doing a C/Guess Style From This Buffer and C/Install Last Guessed Style works great. It indents properly. But it goes…

Vercingatorix
- 201
- 1
- 6
1
vote
1 answer
Value of symbol c-basic-offset in a function
I am using a mode that has the following construct:
(defun robot-indent()
"Returns the string used in indation.
Set indent-tabs-mode to non-nil to use tabs in indentation. If indent-tabs-mode is
set to nil c-basic-offset defines how many spaces…

Gauthier
- 499
- 2
- 13
1
vote
1 answer
Linter for Google shell style guide?
Does anyone know of a Bash linter for the Google shell style guide? I have been using shellcheck as my linter with flycheck but it doesn't conform to this standard.

Andrew
- 541
- 6
- 17
1
vote
0 answers
Consistent way to represent key sequences?
The macro kbd doesn't work for all desired input. For example, this results in an error:
(kbd "C-H-left")
edmacro-parse-keys: C-H- must prefix a single character, not left
and should be written as:
(kbd "C-H-")
There is an alternative…

gavenkoa
- 3,352
- 19
- 36
0
votes
0 answers
How to split org-roam-capture-templates in to multiple lines?
I have following config for my org-roam:
(use-package org-roam
:ensure t
:init
(setq org-roam-v2-ack t)
:custom
(org-roam-directory "~/roamnotes")
(org-roam-completion-everywhere t)
(org-roam-capture-templates
'(("d" "Default"…

Garid
- 545
- 1
- 13
0
votes
0 answers
Latex style file code display
I am loading a latex style file, but getting the code with underscore being shifted down. What can I do to see the document as normal code without getting the superscript and subscript feature activated?
This is what I get with C-h m
Minor modes…

Dilna
- 1,173
- 3
- 10