Add this to .emacs
:
(require 'package)
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/"))
Within emacs:
M-x set-variable (enter 'show-trailing-whitespace', then 't')
Or, in .emacs
:
(setq-default show-trailing-whitespace t)
Within emacs:
M-x set-variable (then type 'display-fill-column-indicator-column', then '80')
M-x global-display-fill-column-indicator-mode
Or, in .emacs
:
(setq-default display-fill-column-indicator-column 80)
(global-display-fill-column-indicator-mode)
To install Tuareg from within emacs. To check if the package is available:
C-h P (then type 'tuareg')
To install it:
M-x package-install (then type 'tuareg')
Then open an .ml
or .mli
file.