Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [style]

The tag has no usage guidance.

4
votes
1answer
114 views

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 ...
0
votes
0answers
288 views

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 ...
0
votes
0answers
16 views

How to make brackets be indented on the same line as declatadin

//i want autoindentation be like this int main(void) { //main body if(true) { //if body } return(0); } how can I achive this in cc-mode? I found that there is something like hanging-braces, ...
0
votes
1answer
18 views

How to set the background of color-hex-values with corresponding color in all modes (like in css-mode)?

In css-mode color strings get a background color corresponding to the respective color - like this (image): How to achieve this behaviour in other modes?
1
vote
1answer
192 views

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 ...
0
votes
0answers
30 views

Change Java indentation spacing of && ampersand

I'm having some trouble finding the customization of Java style in Emacs for newline && ampersands. I'm using just electric indent mode. Current style: return c.booleanSomething() &&...
0
votes
0answers
30 views

How to define a custom code style for C/C++ to be shared with others?

I have my own code style setup in my init.el file, but would like to publish it for other developers to use. Is there a good template to use so projects can share their C/C++ code style between ...
1
vote
1answer
69 views

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 ...
8
votes
2answers
308 views

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 ...
2
votes
1answer
382 views

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.
3
votes
1answer
72 views

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),...
2
votes
1answer
33 views

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 ...
1
vote
0answers
32 views

Consistent way to represent key sequences? [duplicate]

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: ...