Hot answers tagged

2

If you're using use-package just add the following to your~/.emacs file: (use-package writeroom-mode :ensure t :init (add-hook 'org-mode-hook 'writeroom-mode) :after org) If you're not using use-package then just put the following line somewhere in your ~/.emacs file: (add-hook 'org-mode-hook 'writeroom-mode)


2

Go to the beginning of your text and press C-M-%. That key sequence is bound to the command query-replace-regexp. Give \([+-]?[0-9]+\|\_<[[:alpha:]]\)/\([+-]?[0-9]+\|[[:alpha:]]\_>\) as search string and {\1 \\over \2} as replacement and press RET. Note that this searches for integers maybe composed of several digits and with optional sign + or -. ...


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