;; pretty lambda (see also slime) ->  "λ"
;;  'greek small letter lambda' / utf8 cebb / unicode 03bb -> \u03BB / mule?!
;; in greek-iso8859-7 -> 107  >  86 ec
(defun pretty-lambdas ()
  (font-lock-add-keywords
   nil `(("(\\(lambda\\>\\)"
          (0 (progn (compose-region (match-beginning 1) (match-end 1)
                                    ,(make-char 'greek-iso8859-7 107))
                    'font-lock-keyword-face))))))

(autoload 'paredit-mode "paredit"
  "Minor mode for pseudo-structurally editing Lisp code." t)

(defun enable-paredit (keymap)
  (paredit-mode +1)
  (define-key keymap (kbd "RET") 'paredit-newline))

(add-hook 'emacs-lisp-mode-hook 'pretty-lambdas)
(add-hook 'emacs-lisp-mode-hook (lambda () (enable-paredit emacs-lisp-mode-map)))


(provide 'init-lisp)

;; pretty lambda (see also slime) ->  "λ"
;;  'greek small letter lambda' / utf8 cebb / unicode 03bb -> \u03BB / mule?!
;; in greek-iso8859-7 -> 107  >  86 ec
(defun pretty-lambdas ()
  (font-lock-add-keywords
   nil `(("(\\(lambda\\>\\)"
          (0 (progn (compose-region (match-beginning 1) (match-end 1)
                                    ,(make-char 'greek-iso8859-7 107))
                    'font-lock-keyword-face))))))

(autoload 'paredit-mode "paredit"
  "Minor mode for pseudo-structurally editing Lisp code." t)

(defun enable-paredit (keymap)
  (paredit-mode +1)
  (define-key keymap (kbd "RET") 'paredit-newline))

(add-hook 'emacs-lisp-mode-hook 'pretty-lambdas)
(add-hook 'emacs-lisp-mode-hook (lambda () (enable-paredit emacs-lisp-mode-map)))


(add-hook 'emacs-lisp-mode-hook 'turn-on-eldoc-mode)
(add-hook 'lisp-interaction-mode-hook 'turn-on-eldoc-mode)


(provide 'init-lisp)

Use eldoc mode to provide inline help in emacs-lisp-mode
Use eldoc mode to provide inline help in emacs-lisp-mode

zenith-john/emacs.d,qianwan/emacs.d,zuoshifan/emacs.d,farzadbekran/emacs.d,zuoshifan/emacs.d,zuoshifan/emacs.d,whizzzkid/emacs.d,danfengcao/emacs.d,lust4life/emacs.d,kongfy/emacs.d,farzadbekran/emacs.d,Enzo-Liu/emacs.d,renatoriccio/emacs.d,carlosliu/emacs.d,boblannon/emacs.d,bibaijin/emacs.d,jachinpy/emacs.d,wenpincui/emacs.d,mpwang/emacs.d,scorpionis/emacs.d,mmqmzk/emacs.d,caoyuanqi/emacs.d,atreeyang/emacs.d,dongdonghu/.emacs.d,Shanicky/emacs.d,blueabysm/emacs.d,jachinpy/emacs.d,jkaessens/emacs.d,YangXin/emacs.d,alant/emacs.d,fengxl/emacs.d,zuoshifan/emacs.d,arthurl/emacs.d,emuio/emacs.d,lujianmei/emacs.d,wegatron/emacs.d,Togal/emacs.d,zuoshifan/emacs.d,zuoshifan/emacs.d,svenyurgensson/emacs.d,zuoshifan/emacs.d,Guoozz/emacs.d,farzadbekran/emacs.d,modkzs/emcs.d,benkha/emacs.d,shafayetkhan/emacs.d,farzadbekran/emacs.d,dcorking/emacs.d,farzadbekran/emacs.d,cjqw/emacs.d,cyjia/emacs.d,zhaotai/.emacs.d,hkcqr/emacs.d,Werewolflsp/emacs.d,LKI/emacs.d,purcell/emacs.d,ilove0518/emacs.d,me020523/emacs.d,YangXin/emacs.d,ruiyang/emacs.d,zuoshifan/emacs.d,lromang/emacs.d,gsmlg/emacs.d,zuoshifan/emacs.d,dhanunjaya/emacs.d,haodaivshen/emacs.d,46do14/emacs.d,kindoblue/emacs.d,blueseason/emacs.d,pairyo/emacs.d,jthetzel/emacs.d,ernest-dzf/emacs.d,zhuoyikang/emacs.d,LittleLmp/emacs.d,DarkThrone/emacs.d,Jadecity/PurcellEmacs.d,krzysz00/emacs.d,jhpx/emacs.d,sgarciac/emacs.d,hophacker/emacs.d,exclamaforte/emacs.d,ruiyang/emacs.d,qinshulei/emacs.d,baohaojun/emacs.d,braveoyster/emacs.d,roxolan/emacs.d