Changes between Version 27 and Version 28 of Emacs


Ignore:
Timestamp:
Oct 11, 2013 1:07:07 PM (21 months ago)
Author:
jstolarek
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Emacs

    v27 v28  
    2020(setq ido-everywhere t) 
    2121(ido-mode 1) 
    22 }}} 
    23  
    24 == Make the quotes in GHC error messages display nicely == 
    25  
    26 If you run a shell within emacs, you'll see weird escape sequences when GHC displays error message involving Unicode forward or back quotes, eg 
    27 {{{ 
    28     The type signature for \342\200\233foo\342\200\231 lacks an accompanying binding 
    29       (The type signature must be given where \342\200\233foo\342\200\231 is declared) 
    30 }}} 
    31 To make emacs display this Unicode nicely, use this (see #2507) 
    32 {{{ 
    33 (setq locale-coding-system 'utf-8) 
    34 (set-terminal-coding-system 'utf-8-unix) 
    35 (set-keyboard-coding-system 'utf-8) 
    36 (set-selection-coding-system 'utf-8) 
    37 (prefer-coding-system 'utf-8) 
    3822}}} 
    3923 
     
    244228* The above code binds C-q (perhaps a bad combination, as I've accidentally quit Emacs from my Mac with the wrong modifier key!) to compiling GHC from ''any'' Haskell file, even those unrelated to GHC. But, when I'm working outside of GHC, I tend to use C-c C-l to load into GHCi, so this works out OK. 
    245229* By default, as said above, this will compile the stage 2 compiler for the GHC at `ghc-location`. If you set `ghc-compile` with, say, M-: `(setq ghc-compile "cd compiler; make 1")` <Enter>, then this will build the stage 1 compiler. 
     230 
     231== Make the quotes in GHC error messages display nicely == 
     232 
     233'''Description''': If you run a shell within emacs, you'll see weird escape sequences when GHC displays error message involving Unicode forward or back quotes, eg 
     234{{{ 
     235    The type signature for \342\200\233foo\342\200\231 lacks an accompanying binding 
     236      (The type signature must be given where \342\200\233foo\342\200\231 is declared) 
     237}}} 
     238 
     239'''How to enable''': To make emacs display this Unicode nicely, use this (see #2507) 
     240{{{ 
     241(setq locale-coding-system 'utf-8) 
     242(set-terminal-coding-system 'utf-8-unix) 
     243(set-keyboard-coding-system 'utf-8) 
     244(set-selection-coding-system 'utf-8) 
     245(prefer-coding-system 'utf-8) 
     246}}}