(require-package 'ledger-mode)

(add-to-list 'auto-mode-alist '("\\.ledger$" . ledger-mode))

(when (> emacs-major-version 23)
  (require-package 'flycheck-ledger))
(after-load 'flycheck
  (require 'flycheck-ledger))
(after-load 'ledger-mode
  (define-key ledger-mode-map (kbd "RET") 'newline)
  (define-key ledger-mode-map (kbd "C-o") 'open-line))

(setq ledger-highlight-xact-under-point nil
      ledger-use-iso-dates nil)

(exec-path-from-shell-copy-env "LEDGER_FILE")

(add-hook 'ledger-mode-hook 'goto-address-prog-mode)

(provide 'init-ledger)

(require-package 'ledger-mode)

(add-to-list 'auto-mode-alist '("\\.ledger$" . ledger-mode))

(when (> emacs-major-version 23)
  (require-package 'flycheck-ledger))
(after-load 'flycheck
  (require 'flycheck-ledger))
(after-load 'ledger-mode
  (define-key ledger-mode-map (kbd "RET") 'newline)
  (define-key ledger-mode-map (kbd "C-o") 'open-line))

(setq ledger-highlight-xact-under-point nil
      ledger-use-iso-dates nil)

(when (memq window-system '(mac ns))
  (exec-path-from-shell-copy-env "LEDGER_FILE"))

(add-hook 'ledger-mode-hook 'goto-address-prog-mode)

(provide 'init-ledger)

Check OS before using exec-path-from-shell for $LEDGER_FILE
Check OS before using exec-path-from-shell for $LEDGER_FILE

See #174

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