Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

only activate pretty lambdas when running in a windowing system

  • Loading branch information...
commit 109544ad5a36a4624ef362dd9a5d7e16e753d6d4 1 parent e234114
@eschulte eschulte authored
Showing with 4 additions and 2 deletions.
  1. +2 −1  starter-kit-defuns.org
  2. +2 −1  starter-kit-haskell.org
View
3  starter-kit-defuns.org
@@ -41,7 +41,8 @@ a lambda doesn't already exist in the list.
#+srcname: starter-kit-add-pretty-lambdas
#+begin_src emacs-lisp
-(add-hook 'starter-kit-coding-hook 'starter-kit-pretty-lambdas)
+ (when (window-system)
+ (add-hook 'starter-kit-coding-hook 'starter-kit-pretty-lambdas))
#+end_src
#+srcname: starter-kit-run-starter-kit-coding-hook
View
3  starter-kit-haskell.org
@@ -22,5 +22,6 @@ pretty lambdas in Haskell code
Haskell mode hook
#+begin_src emacs-lisp
(add-hook 'haskell-mode-hook 'run-starter-kit-coding-hook)
- (add-hook 'haskell-mode-hook 'pretty-lambdas-haskell)
+ (when (window-system)
+ (add-hook 'haskell-mode-hook 'pretty-lambdas-haskell))
#+end_src
Please sign in to comment.
Something went wrong with that request. Please try again.