
Sml Mode In Emacs For Mac
smart-mode-line
You could also use the sml-modeline package. It works pretty well in the terminal (imo) and is a nice alternative when yascroll doesn't work so well. However, you might want to apply the following monkey patch to sml-modeline-mode if you don't want it messing with stuff that's already in your modeline: (require 'sml-modeline) (defun sml-modeline-mode (&optional arg) 'Show buffer size. SML Mode is an extra extension to Emacs that is not Emacs itself or SML/NJ itself. It displays SML code nicely with syntax coloring and clean indentation, and provides a way to run SML from within Emacs. Go to and download.
Smart Mode Line is a sexy mode-line for Emacs. It aims to be easy toread from small to large monitors by using colors, a prefix feature, andsmart truncation.
- Emacs 24.4 compatible.
- Integration with Projectile!
- Display
current-directory
in Shell and eshell. - New value for
sml/theme
:automatic
(highly recommended). sml/apply-theme
is interactive and has completion.- Smart-mode-line themes are now regular themes.
Dark Theme
Light Theme
smart-mode-line is available on Melpa, and that's the recommendedway of installing it. If you do that, you can simply activate it with:
To install it manually, you need emacs-version >= 24.3. Firstmake sure you install dash.el(which is a dependency), then make sure 'smart-mode-line.el' is inyour load path, and finally place this code in your .emacs
file:
To change the color theme, do one of the following:
Its main features include:
Color coded:
Highlights the most important information for you(buffer name, modified state, line number). Don'tlike the colors? See item 5.!Fixed width (if you want):
Lets you set a maxium width for the path name and mode names, andtruncates them intelligently (truncates the directory, not thebuffer name). Also let's you right indent strings in themode-line (seesml/mode-width
).Directory as Prefixes:
Prefix feature saves a LOT of space. e.g. '~/.emacs.d/'is translated to ':ED:' in the path (open a file insidethis folder to see it in action). Long path names youare commmonly working on are displayed as shortabbreviations. Set your own prefixes to make best useof it (by configuringsml/replacer-regexp-list
). Mousingover the abbreviated path will show you the fullpath. See below for examples.Hide minor-modes:
Hidden-modes feature saves even more space. Selectwhich minor modes you don't want to see listed bycustomizing thesml/hidden-modes
variable. This willfilter out the modes you don't care about and unclutterthe modes list (mousing over the modes list still showsthe full list).Very easy to configure:
All colors and variables are customizable. You can change thewhole theme withsml/apply-theme
, or just customize anythingmanually withsml/customize
andsml/customize-faces
. There areDOZENS of variables to customize your mode-line, just pop overthere and have a look!Compatible with absolutely anything:
I'm serious. Versions 2.0 and above should be compatible withany other packages that display information in the mode-line(evil, nyan-mode, elscreen, display-battery-mode, etc). If youfind ANYTHING that does not appear as it should, file a bug reportand I'll get to it.A patch for Championship Manager 03-04, updating the game to v4.1.4. (Includes all previous patches) Patch 3 - 4.1.4. Match - Fixed network game bug where client scorelines differed to server due to clash of post and pre 4.1.3 tactics - Fixed 4-4-1-1 and 4-2-3-1-dk - Full match mode now skips 'dead time' again - Fixed. Go to your C drive and click Program Files (x86) - click Championship Manager 3 and copy the Data folder, save this somewhere easy to find on your computer 4. Run the update patch - cm3officialv304e.exe, (if you don't have the patch, it is available at Patches-scrolls.de website), don't start the game yet 5. Championship manager 3 patch.
All variables can be edited by running sml/customize
, and thedocumentations are mostly self explanatory, I list here only themost important ones.

sml/theme
Choose what theme you want to use for the mode-line colors. For nowthere are 3 different themes:dark
,light
, andrespectful
.sml/shorten-directory
andsml/shorten-modes
Setting both of these tot
garantees a fixed width mode-line(directory name and minor-modes list will be truncated to fit). Toactually define the width, see below.sml/name-width
andsml/mode-width
Customize these according to the width of your emacs frame. I setthem to40
andfull
respectively, and the mode-line fitsperfectly when the frame is split in two even on my laptop's small17' monitor.full
means everything after the minor-modes will beright-indented.sml/replacer-regexp-list
This variable is a list of (REGEXP REPLACEMENT) that is usedto parse the path. The replacements are appliedsequentially. This allows you to greatly abbreviate the paththat's shown in the mode-line. If this abbreviation is ofthe form ':SOMETHING:', it is considered a prefix and get'sa different color (you can change what's considered a prefixby customizingsml/prefix-regexp
).
For example, if you do a lot of work on a folder called'~/Dropbox/Projects/In-Development/' almost half themode-line would be occupied just by the folder name, whichis much less important than the buffer name. But, you can'tjust hide the folder name, since editting a file in'~/Dropbox/Projects/In-Development/Source' is VERY differentfrom editting a file in '~/Dropbox/Projects/Source'. Bysetting up a prefix for your commonly used folders, you getall that information without wasting all that space. In thisexample you could set the replacement to ':ProjDev:' or just':InDev:', so the path shown in the mode-line will be':ProjDev:Source/' (saves a lot of space without hidinginformation).
Here go some more useful examples: