ninrod
  • Member for 5 years, 6 months
  • Last seen more than a month ago
How to prettify/format an XML buffer?
7 votes

write this into your ~/.emacs.d/init.el: (require 'sgml-mode) (defun ninrod/reformat-xml () (interactive) (save-excursion (sgml-pretty-print (point-min) (point-max)) (indent-region (...

View answer
Flycheck elisp "There should be two spaces after period"
Accepted answer
2 votes

UPDATE as of 2017-02-14: With this pull-request merged, now you just have to set sentence-end-double-space to nil and that's it. More information here.

View answer
print absolute path of symlink?
2 votes

Yes. this is lifted from emacs-prelude (defun prelude-copy-file-name-to-clipboard () "Copy the current buffer file name to the clipboard." (interactive) (let ((filename (if (equal ...

View answer
How to pretty-format code (auto-insert newlines, indent, etc)?
0 votes

With emacs 26.3 you can just use the stock json-pretty-print function. json-pretty-print is an interactive and compiled function defined in json.el.gz. -- Emacs 26.3 documentation select ...

View answer
how to teach emacs that `'` (dead acute) + c = ç?
Accepted answer
-1 votes

Just put LANG=C before calling your emacs boostrap command. LANG=C emacs and it works like a charm.

View answer