-
Notifications
You must be signed in to change notification settings - Fork 8
/
set-os-environment-setting.el
executable file
·28 lines (28 loc) · 1.2 KB
/
set-os-environment-setting.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
;; -*- coding: utf-8 -*-
;; File: set-os-environment-setting.el --- Set os related environment parameters
;;
;; Author: Denny Zhang(https://www.dennyzhang.com/contact);; Copyright 2020, https://DennyZhang.com
;; Created:2008-10-01
;; Updated: Time-stamp: <2020-02-03 15:37:42>
;;
;; --8<-------------------------- separator ------------------------>8--
;; set environment variables for different OS
(if (string= "darwin" system-type)
(progn
(setenv "LEDGER" "/usr/local/bin/ledger")
(setenv "LEDGER_FILE" (concat CONF-SHARE-DIR "private_data/emacs_stuff/bank/filebat.ledger"))
(setenv "EMACS_BIN" "/usr/local/bin/emacs")
)
)
(if (string= "gnu/linux" system-type)
(progn
(setenv "LEDGER" "/usr/bin/ledger")
(setenv "LEDGER_FILE" (concat CONF-SHARE-DIR "private_data/emacs_stuff/bank/filebat.ledger"))
(setenv "EMACS_BIN" "/usr/local/bin/emacs")
)
)
;; --8<-------------------------- separator ------------------------>8--
;;(setq exec-path (append exec-path '(concat CONF-EMACS-DATA "/"))) ;;Change binary path
(setenv "LC_ALL" "en_US.UTF-8")
;; --8<-------------------------- separator ------------------------>8--
;; File: set-os-environment-setting.el ends here