Changes between Version 1 and Version 2 of Emacs


Ignore:
Timestamp:
Oct 6, 2013 2:29:13 PM (21 months ago)
Author:
jstolarek
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Emacs

    v1 v2  
    11= Emacs tips and tricks 
    22 
    3 Most of us use Emacs for GHC development. This page lists various Emacs configuration tips and tricks used by GHC developers in hope that they will be useful to others. Each entry includes a short description, instruction how to enable given setting (if it contains only a block of lisp code it means you need to add it to your `.emacs` configuration file) and a more detailed commentary 
     3Most of us use Emacs for GHC development. This page lists various Emacs configuration tips and tricks used by GHC developers in hope that they will be useful to others. Each entry includes a short description and instruction how to enable given setting (if it contains only a block of lisp code it means you need to add it to your `.emacs` configuration file). All configuration is given for Emacs 24, unless otherwise noted. 
    44 
    55= General 
    66 
    7 == Automatically remove trailing whitespaces on save 
     7== Highlight text beyond 80th column 
    88 
    9 '''Description''': Automatically removes trailing whitespaces when file is saved. 
     9'''Description''': If you have a tendency to write too long lines of code this will help you by highlighting text beyond 80th column. 
     10 
     11'''How to enable''': 
     12{{{ 
     13(require 'whitespace) 
     14(setq whitespace-style '(face lines-tail)) 
     15(setq whitespace-line-column 80) 
     16(global-whitespace-mode t) 
     17}}} 
     18 
     19== Automatically removes trailing whitespaces when file is saved 
     20 
     21'''Description''': Currently source code of GHC contains lots of trailing whitespaces, which means that '''this setting is dangerous'''. It will remove ALL trailing whitespaces in every file that you edit, which means you might have one or two lines changed by you and a hundred lines automatically changed by removing trailing whitespaces. This will require you to separate whitespaces into a separate commit by using `git add -i`. This is tedious, so be warned. 
     22 
    1023'''How to enable''': 
    1124{{{ 
    1225(add-hook 'before-save-hook 'delete-trailing-whitespace) 
    1326}}} 
    14 '''Comment''': Currently source code of GHC contains lots of trailing whitespaces, which means that '''this setting is dangerous'''. It will remove ALL trailing whitespaces in every file that you edit, which means you might have one or two lines changed by you and a hundred lines automatically changed by removing trailing whitespaces. This will require you to separate whitespaces into a separate commit by using `git add -i`. This is tedious, so be warned. 
    1527 
    1628= Haskell-specific 
     
    1931 
    2032'''Description''':  
     33 
    2134'''How to enable''': 
    22 '''Comment''':