Sml Mode In Emacs For Mac

admin

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:

  1. Color coded:
    Highlights the most important information for you(buffer name, modified state, line number). Don'tlike the colors? See item 5.!

  2. 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 (see sml/mode-width).

  3. 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 configuring sml/replacer-regexp-list). Mousingover the abbreviated path will show you the fullpath. See below for examples.

  4. Hide minor-modes:
    Hidden-modes feature saves even more space. Selectwhich minor modes you don't want to see listed bycustomizing the sml/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).

  5. Very easy to configure:
    All colors and variables are customizable. You can change thewhole theme with sml/apply-theme, or just customize anythingmanually with sml/customize and sml/customize-faces. There areDOZENS of variables to customize your mode-line, just pop overthere and have a look!

  6. 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 Mode In Emacs For Mac
  1. sml/theme
    Choose what theme you want to use for the mode-line colors. For nowthere are 3 different themes: dark, light, and respectful.

  2. sml/shorten-directory and sml/shorten-modes
    Setting both of these to t garantees a fixed width mode-line(directory name and minor-modes list will be truncated to fit). Toactually define the width, see below.

  3. sml/name-width and sml/mode-width
    Customize these according to the width of your emacs frame. I setthem to 40 and full 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.

  4. 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 customizing sml/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: