Skip to main content
19 votes
Accepted

When should sharp quotes be used?

#' is just shorthand for function, just as ' is shorthand for quote. You can use it anywhere where you want to indicate to the byte-compiler or the interpreter or a human reader that its argument is ...
Drew's user avatar
  • 78k
13 votes

When should sharp quotes be used?

#' (aka function) can be used in front of (lambda ...) but it's redundant there, so the only place where it's really meaningful is in front of a symbol, as in #'car. In ELisp, #'car and 'car are ...
Stefan's user avatar
  • 26.5k
6 votes
Accepted

Extra indentation for argument lists beginning on a new line

Set point on the line in question and press C-c C-s to call c-show-syntactic-information. This shows you which variable you need to set. I set this to: (c-offsets-alist . ( (arglist-intro . c-...
jue's user avatar
  • 4,596
6 votes
Accepted

There's a way to use emacs like MS Word, to make text permanently colored, stylized, etc...?

If you want to get a well formatted text document, you can use emacs and others packages like LaTeX, ConTeXt, org-mode, or markdown (and pandoc) to get a beautiful and well structured pdf/html/ePub ...
Lizardo Reyna's user avatar
3 votes
Accepted

Org-ref, Exporting org file to HTML with its style exactly same as a specific scientific journal

org-ref does not play well (natively) with docx, odt or html export. Its creator (J. Kitchin) explains why in several blog posts. I don't know if this is the canonical (or even a good) way to proceed, ...
Philopolis's user avatar
  • 1,134
2 votes

Linter for Google shell style guide?

You can use shfmt to format shell/bash code. It is configurable, so you should be able to get the Google style with something like shfmt -i 2 -ci. It's a standalone tool, but it should be easy enough ...
mvdan's user avatar
  • 121
1 vote

Completion to set style

Your code has a couple of problems. Option show-paren-style expects a symbol, not a string. So (a) change your defcustom to use symbols, and (b) use intern on the value returned by completing-read (...
Drew's user avatar
  • 78k
1 vote
Accepted

c-set-style: Error loading guessed style

While composing this and doing my due diligence, I solved my problem. For some reason, Emacs generated the expression with the name I chose to name the style as the base style, and because I specified ...
Vercingatorix's user avatar
1 vote

image-dired: Change thickness of cursor

You might try customizing one or both of these image-dired options (the text is what you get with C-h v). image-dired-thumb-relief - Size of button-like border around thumbnails. image-dired-thumb-...
Drew's user avatar
  • 78k
1 vote

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

OK… wasn't aware of rainbow-mode, wich does exactly, what I intended. Of cource I found it after I posted question here ^^. So the solution is: M-x package-install RET rainbow-mode RET To answer ...
kai-dj's user avatar
  • 427
1 vote

Value of symbol c-basic-offset in a function

Re-reading about style variables, I assumed boundp was not doing what I expected. I guess this function was written before CC mode 5.26, and that it's what footnote 1 in the link above refers too. ...
Gauthier's user avatar
  • 509
1 vote
Accepted

Update cc-style to use a mix of tabs and spaces, depending on context?

Smart Tabs is a mode that will do what you want -- indent with tabs, align with spaces. From the documentation, once you install it, you can disable it normally, but enable it in c-mode this way: (...
zck's user avatar
  • 9,112
1 vote
Accepted

how to manage elint dragging in lots of .gz files

This is somewhere between fully intentional and a bug. I'm not sure towards which side this one leans to, so I'll just let the sources speak for themselves: (defun elint-add-required-env (env name ...
wasamasa's user avatar
  • 22.2k

Only top scored, non community-wiki answers of a minimum length are eligible