File tree 4 files changed +35
-7
lines changed
4 files changed +35
-7
lines changed Original file line number Diff line number Diff line change 133
133
(102 . " \\ footcite[][]{%l}" )
134
134
(70 . " \\ fullcite[]{%l}" )
135
135
(120 . " []{%l}" )
136
- (88 . " {%l}" ))) t )
136
+ (88 . " {%l}" ))))
137
137
'(reftex-default-bibliography
138
138
(quote
139
- (" /Users/ronert/Dropbox/bib/library.bib" " /Users/ronert/Dropbox/bib/rpackages.bib" " /Users/ronert/Dropbox/bib/websites.bib" )) t )
139
+ (" /Users/ronert/Dropbox/bib/library.bib" " /Users/ronert/Dropbox/bib/rpackages.bib" " /Users/ronert/Dropbox/bib/websites.bib" )))
140
140
'(reftex-ref-style-alist
141
141
(quote
142
142
((" Default" t
Original file line number Diff line number Diff line change 2
2
(if (fboundp 'scroll-bar-mode ) (scroll-bar-mode -1 ))
3
3
4
4
; ; No splash screen please ... jeez
5
- (setq inhibit-startup-message t )
5
+ (setq inhibit-startupmessage t )
6
6
7
7
; ; Set path to dependencies
8
8
(add-to-list 'load-path (expand-file-name " lisp" user-emacs-directory))
27
27
(defvar init-files
28
28
'(
29
29
; ; Appearance
30
+ init-locales
30
31
init-appearance
31
32
; ;----------------------------------------------------------------------------
32
33
; ; Load configs for specific features and modes
104
105
; ;----------------------------------------------------------------------------;; Allow access from emacsclient
105
106
; ;----------------------------------------------------------------------------
106
107
(add-hook 'after-init-hook
107
- (lambda ()
108
- (require 'server )
109
- (unless (server-running-p )
110
- (server-start ))))
108
+ (lambda ()
109
+ (require 'server )
110
+ (unless (server-running-p )
111
+ (server-start ))))
111
112
112
113
; ;----------------------------------------------------------------------------;; Variables configured via the interactive 'customize' interface
113
114
; ;----------------------------------------------------------------------------
Original file line number Diff line number Diff line change 16
16
(add-to-list 'exec-path " /usr/texbin:/usr/local/bin" )
17
17
(add-to-list 'exec-path " ~/anaconda3/bin" )
18
18
(add-to-list 'exec-path " ~/.local/bin" )
19
+ (exec-path-from-shell-copy-envs '(" LANG" " LC_ALL" " LC_CTYPES" ))
19
20
)
20
21
)
21
22
Original file line number Diff line number Diff line change
1
+ ; ;; init-locales.el --- Configure default locale -*- lexical-binding : t -*-
2
+ ; ;; Commentary:
3
+ ; ;; Code:
4
+
5
+ (defun sanityinc/locale-var-encoding (v )
6
+ " Return the encoding portion of the locale string V, or nil if missing."
7
+ (when v
8
+ (save-match-data
9
+ (let ((case-fold-search t ))
10
+ (when (string-match " \\ .\\ ([^.]*\\ )\\ '" v)
11
+ (intern (downcase (match-string 1 v))))))))
12
+
13
+ (dolist (varname '(" LC_ALL" " LANG" " LC_CTYPE" ))
14
+ (let ((encoding (sanityinc/locale-var-encoding (getenv varname))))
15
+ (unless (memq encoding '(nil utf8 utf-8))
16
+ (message " Warning: non-UTF8 encoding in environment variable %s may cause interop problems with this Emacs configuration. " varname))))
17
+
18
+ (when (fboundp 'set-charset-priority )
19
+ (set-charset-priority 'unicode ))
20
+ (prefer-coding-system 'utf-8 )
21
+ (setq locale-coding-system 'utf-8 )
22
+ (unless (eq system-type 'windows-nt )
23
+ (set-selection-coding-system 'utf-8 ))
24
+
25
+ (provide 'init-locales )
26
+ ; ;; init-locales.el ends here
You can’t perform that action at this time.
0 commit comments