diff --git a/README.md b/README.md index 4c3f251..df86a67 100644 --- a/README.md +++ b/README.md @@ -7,18 +7,19 @@
  • 3. Language mode specific @@ -205,7 +206,27 @@ configurations are also dependent on them). paredit ; minor mode for editing parentheses pretty-lambdada ; the word `lambda' as the Greek letter. smex)) ; M-x interface with Ido-style fuzzy matching. - (upgrade-or-install-package package))) + (upgrade-or-install-package package)) + ;; This package is only relevant for Mac OS X. + (when (memq window-system '(mac ns)) + (upgrade-or-install-package 'exec-path-from-shell))) +``` + +## Mac OS X + +I run this configuration mostly on Mac OS X, so we need a couple of +settings to make things work smoothly. In the package section +`exec-path-from-shell` is included (only if you're running OS X), this is +to include environment-variables from the shell. It makes useing Emacs +along with external processes a lot simpler. I also prefer using the +`Command`-key as the `Meta`-key. + +```lisp +(when (memq window-system '(mac ns)) + (setq mac-option-modifier nil + mac-command-modifier 'meta + x-select-enable-clipboard t) + (exec-path-from-shell-initialize)) ``` ## Require @@ -894,9 +915,9 @@ dependent on some python programs as well, so make sure you follow the instructions from the site. ```lisp -(setq jedi:server-command - (cons "python3" (cdr jedi:server-command)) - python-shell-interpreter "python3") +;; (setq jedi:server-command +;; (cons "python3" (cdr jedi:server-command)) +;; python-shell-interpreter "python3") (add-hook 'python-mode-hook 'jedi:setup) (setq jedi:complete-on-dot t) (add-hook 'python-mode-hook 'jedi:ac-setup) diff --git a/init.el b/init.el index 835c506..8e3c387 100644 --- a/init.el +++ b/init.el @@ -92,7 +92,16 @@ PACKAGE is installed and the current version is deleted." paredit ; minor mode for editing parentheses pretty-lambdada ; the word `lambda' as the Greek letter. smex)) ; M-x interface with Ido-style fuzzy matching. - (upgrade-or-install-package package))) + (upgrade-or-install-package package)) + ;; This package is only relevant for Mac OS X. + (when (memq window-system '(mac ns)) + (upgrade-or-install-package 'exec-path-from-shell))) + +(when (memq window-system '(mac ns)) + (setq mac-option-modifier nil + mac-command-modifier 'meta + x-select-enable-clipboard t) + (exec-path-from-shell-initialize)) (dolist (feature '(auto-compile ; auto-compile .el files @@ -431,9 +440,9 @@ LANGUAGES (cyclic) list." (setcar (cdr (cddaar tex-compile-commands)) " -shell-escape ") -(setq jedi:server-command - (cons "python3" (cdr jedi:server-command)) - python-shell-interpreter "python3") +;; (setq jedi:server-command +;; (cons "python3" (cdr jedi:server-command)) +;; python-shell-interpreter "python3") (add-hook 'python-mode-hook 'jedi:setup) (setq jedi:complete-on-dot t) (add-hook 'python-mode-hook 'jedi:ac-setup) diff --git a/init.org b/init.org index b670314..7408a4f 100644 --- a/init.org +++ b/init.org @@ -163,7 +163,27 @@ paredit ; minor mode for editing parentheses pretty-lambdada ; the word `lambda' as the Greek letter. smex)) ; M-x interface with Ido-style fuzzy matching. - (upgrade-or-install-package package))) + (upgrade-or-install-package package)) + ;; This package is only relevant for Mac OS X. + (when (memq window-system '(mac ns)) + (upgrade-or-install-package 'exec-path-from-shell))) + #+END_SRC + +** Mac OS X + + I run this configuration mostly on Mac OS X, so we need a couple of + settings to make things work smoothly. In the package section + =exec-path-from-shell= is included (only if you're running OS X), this is + to include environment-variables from the shell. It makes useing Emacs + along with external processes a lot simpler. I also prefer using the + =Command=-key as the =Meta=-key. + + #+BEGIN_SRC emacs-lisp :tangle yes + (when (memq window-system '(mac ns)) + (setq mac-option-modifier nil + mac-command-modifier 'meta + x-select-enable-clipboard t) + (exec-path-from-shell-initialize)) #+END_SRC ** Require @@ -850,9 +870,9 @@ instructions from the site. #+BEGIN_SRC emacs-lisp :tangle yes - (setq jedi:server-command - (cons "python3" (cdr jedi:server-command)) - python-shell-interpreter "python3") + ;; (setq jedi:server-command + ;; (cons "python3" (cdr jedi:server-command)) + ;; python-shell-interpreter "python3") (add-hook 'python-mode-hook 'jedi:setup) (setq jedi:complete-on-dot t) (add-hook 'python-mode-hook 'jedi:ac-setup) diff --git a/init.pdf b/init.pdf index 0927331..d13a8b4 100644 Binary files a/init.pdf and b/init.pdf differ