10

The only consequence I'm seeing, is the ability to recognize periods from abbreviations. As stated by gnu.org: If you want to use just one space between sentences, you can set the variable sentence-end-double-space to nil to make the sentence commands stop for single spaces. However, this has a drawback: there is no way to distinguish between ...


10

Here is a little fun with Unicode smiley faces. The en-dash visually becomes a black smiley face. The em-dash visually becomes a white smiley face. Note, some Emacs versions may not support the smiley face Unicode characters -- it is only meant to be a demonstration -- other Unicode characters can of course be chosen. Other faces can be used, and the ...


9

To quote the docs: C-x = runs the command what-cursor-position, which is an interactive compiled Lisp function in simple.el. It is bound to C-x =. (what-cursor-position &optional DETAIL) Print info on cursor position (on screen and within buffer). Also describe the character after point, and give its character code in octal, decimal and ...


6

Use library highlight-chars.el to highlight any Unicode chars anyway you want. See Highlight Characters on Emacs Wiki. You can use command hc-highlight-chars to do highlight characters in four ways: individually using ranges using character classes (e.g. [:digit:]) using character sets (e.g. iso-8859-1 or lao) hc-highlight-chars prompts you for the ...


3

This is not really an answer to the question as stated ("what do I lose if I set sentence-end-double-space to nil"), but rather something like the third way;-). (Also, it is a (partial) copy from a post I've just written on my blog; if this is inappropriate, someone please delete this, but I hope this might be helpful.) So, basically, why do you want to ...


3

It turns out, this is a solved problem. Typopunct is already able to use curvy quotes in text and straight quotes inside tags for a variety of modes. I happen to edit HTML in a mode typopunct doesn't cover out of the box, but that's no problem. See typopunct-mode.el: (defcustom typopunct-mode-exeptions-alist '((sgml-mode . typopunct-point-in-xml-tag-p) ...


2

I think this is basically a matter of reading text with fixed-width fonts, yes? I suspect your best option is to enable M-x variable-pitch-mode for info buffers: (add-hook 'Info-mode-hook 'variable-pitch-mode) Note that you'll end up with a greater variability in visual line widths than before, as the manual text is filled / hard-wrapped (and I don't ...


2

@wilx could you possibly write a short answer to your own question, so this won't haunt the "Unanswered questions" list forever? OK. I have checked out both of the packages and I have modified both and added Czech quotation marks to them (typopunct-mode, typo-mode). My modification of typo-mode is already merged to upstream. I am now using typo-mode as it ...


2

To self-insert the key in the source block: (defun my-org-mode-hook () "Custom `org-mode' behaviours." (typo-mode 1) (add-hook 'typo-disable-electricity-functions 'org-in-src-block-p nil :local)) (add-hook 'org-mode-hook 'my-org-mode-hook) Documentation: *A list of functions to call before an electric key binding is used. If one of the functions ...


1

I think I got it. Note: I am a newbie to elisp so any comments/corrections are most welcome. Just add the following line to the typopunct.el file after the define-minor-mode typopunct-mode (define-globalized-minor-mode global-typopunct-mode typopunct-mode (lambda () (typopunct-mode 1))) From the documentation I should also define a non-globalized version, ...


1

I'm not sure if the Emacs community cares or not, but I can assure you that the manpower needed to fix this is definitely missing. Just refilling the text to a different width (or to take advantage of variable-pitch fonts) is already a problem in *info* buffers (because the underlying data doesn't clearly indicate the boundaries of paragraphs and doesn't ...


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