|
4 | 4 | ;; additional .el load path
|
5 | 5 | (setq elisp_path "~/CodeBase/emacs_dev")
|
6 | 6 | (add-to-list 'load-path elisp_path)
|
7 |
| -(dolist (pkg_dir '("solarized-emacs" |
8 |
| - "use-package" |
| 7 | +(dolist (pkg_dir '("use-package" |
9 | 8 | "xterm-color"
|
10 | 9 | "emacs-async"
|
11 | 10 | "emacs-sbt-mode"
|
|
133 | 132 | ;;--------------------------------------------------------------------
|
134 | 133 | ;; Python
|
135 | 134 | (elpy-enable)
|
136 |
| -(setq elpy-rpc-python-command "python3") |
| 135 | +(setq elpy-rpc-python-command "python3") ;; use a default python |
137 | 136 | (setq elpy-rpc-backend "jedi")
|
138 |
| -(setq elpy-interactive-python-command "ipython3 --simple-prompt -i") |
| 137 | +(elpy-use-ipython "ipython3") |
| 138 | +(setq python-shell-interpreter "ipython3") |
| 139 | +(setq python-shell-interpreter-args "--simple-prompt --pprint") |
| 140 | +(setq python-shell-prompt-detect-enabled nil) |
| 141 | +(setq python-shell-prompt-detect-failure-warning nil) |
| 142 | + |
| 143 | +;; https://github.com/emacs-mirror/emacs/commit/dbb341022870ecad4c9177485a6770a355633cc0 |
| 144 | +(defun python-shell-completion-native-try () |
| 145 | + "Return non-nil if can trigger native completion." |
| 146 | + (let ((python-shell-completion-native-enable t) |
| 147 | + (python-shell-completion-native-output-timeout |
| 148 | + python-shell-completion-native-try-output-timeout)) |
| 149 | + (python-shell-completion-native-get-completions |
| 150 | + (get-buffer-process (current-buffer)) |
| 151 | + nil "_"))) |
| 152 | + |
| 153 | + |
| 154 | +;;(setq elpy-interactive-python-command "ipython3 --simple-prompt -i") |
139 | 155 | ;; (use-package python
|
140 | 156 | ;; :mode ("\\.py\\'" . python-mode)
|
141 | 157 | ;; :init
|
|
234 | 250 | ;; with unicode
|
235 | 251 | (load "emacs-rc-pretty-lambda.el")
|
236 | 252 |
|
237 |
| -;; New in Emacs 24, color theme, loaded at last |
238 |
| -(load-theme 'solarized-dark "NO-CONFIRM") |
239 |
| - |
240 | 253 | ;; global variables
|
241 | 254 | (setq
|
242 | 255 | inhibit-startup-screen t
|
|
274 | 287 | word-wrap t
|
275 | 288 | ns-pop-up-frames nil)
|
276 | 289 |
|
| 290 | +;; set themes at last |
| 291 | +(load-theme 'solarized t) |
0 commit comments