diff options
author | Julian Teu <julianteu@protonmail.com> | 2018-02-08 13:51:18 +0100 |
---|---|---|
committer | Julian Teu <julianteu@protonmail.com> | 2018-02-08 13:51:18 +0100 |
commit | 8d7942a9132d389e2b7f7a5c5917eebe80741c0d (patch) | |
tree | e1d07fb218f96a6420860def178120580c91ee28 | |
parent | 84e5be47e53e88694e8bba4ef1ad991fd42b96f5 (diff) |
Set up babel
-rw-r--r-- | .emacs | 41 |
1 files changed, 36 insertions, 5 deletions
@@ -24,10 +24,10 @@ ["#757575" "#CD5542" "#4A8F30" "#7D7C21" "#4170B3" "#9B55C3" "#68A5E9" "gray43"]) '(beacon-color "#cc6666") '(column-number-mode t) - '(custom-enabled-themes (quote (tango-dark))) + '(custom-enabled-themes nil) '(custom-safe-themes (quote - ("938d8c186c4cb9ec4a8d8bc159285e0d0f07bad46edf20aa469a89d0d2a586ea" "6de7c03d614033c0403657409313d5f01202361e35490a3404e33e46663c2596" "ed317c0a3387be628a48c4bbdb316b4fa645a414838149069210b66dd521733f" "d6922c974e8a78378eacb01414183ce32bc8dbf2de78aabcc6ad8172547cb074" "4e63466756c7dbd78b49ce86f5f0954b92bf70b30c01c494b37c586639fa3f6f" "06f0b439b62164c6f8f84fdda32b62fb50b6d00e8b01c2208e55543a6337433a" "628278136f88aa1a151bb2d6c8a86bf2b7631fbea5f0f76cba2a0079cd910f7d" "bb08c73af94ee74453c90422485b29e5643b73b05e8de029a6909af6a3fb3f58" "1b8d67b43ff1723960eb5e0cba512a2c7a2ad544ddb2533a90101fd1852b426e" "82d2cac368ccdec2fcc7573f24c3f79654b78bf133096f9b40c20d97ec1d8016" default))) + ("cec19046bfe0bd715cb30d3e8e841411f4e59042d8538a8c9da4bf66b08664d9" "e297f54d0dc0575a9271bb0b64dad2c05cff50b510a518f5144925f627bb5832" "938d8c186c4cb9ec4a8d8bc159285e0d0f07bad46edf20aa469a89d0d2a586ea" "6de7c03d614033c0403657409313d5f01202361e35490a3404e33e46663c2596" "ed317c0a3387be628a48c4bbdb316b4fa645a414838149069210b66dd521733f" "d6922c974e8a78378eacb01414183ce32bc8dbf2de78aabcc6ad8172547cb074" "4e63466756c7dbd78b49ce86f5f0954b92bf70b30c01c494b37c586639fa3f6f" "06f0b439b62164c6f8f84fdda32b62fb50b6d00e8b01c2208e55543a6337433a" "628278136f88aa1a151bb2d6c8a86bf2b7631fbea5f0f76cba2a0079cd910f7d" "bb08c73af94ee74453c90422485b29e5643b73b05e8de029a6909af6a3fb3f58" "1b8d67b43ff1723960eb5e0cba512a2c7a2ad544ddb2533a90101fd1852b426e" "82d2cac368ccdec2fcc7573f24c3f79654b78bf133096f9b40c20d97ec1d8016" default))) '(electric-pair-mode t) '(fci-rule-color "#373b41") '(flycheck-color-mode-line-face-to-color (quote mode-line-buffer-id)) @@ -68,7 +68,8 @@ ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. - '(default ((t (:family "Source Code Pro" :foundry "ADBO" :slant normal :weight normal :height 113 :width normal))))) + '(default ((t (:family "Source Code Pro" :foundry "ADBO" :slant normal :weight normal :height 113 :width normal)))) + '(org-agenda-structure ((t (:inherit default :underline nil :slant normal :weight normal :height 2.0 :width normal :foundry "MS " :family "Source Code Pro"))))) @@ -196,6 +197,36 @@ (show-paren-mode 1) - - +(require 'dired-single) + +(defun my-dired-init () + "Bunch of stuff to run for dired, either immediately or when it's + loaded." + ;; <add other stuff here> + (define-key dired-mode-map [return] 'dired-single-buffer) + (define-key dired-mode-map [mouse-1] 'dired-single-buffer-mouse) + (define-key dired-mode-map "^" + (function + (lambda nil (interactive) (dired-single-buffer ".."))))) + +;; if dired's already loaded, then the keymap will be bound +(if (boundp 'dired-mode-map) + ;; we're good to go; just add our bindings + (my-dired-init) + ;; it's not loaded yet, so add our bindings to the load-hook + (add-hook 'dired-load-hook 'my-dired-init)) + + + +(org-babel-do-load-languages + 'org-babel-load-languages + '((R . t) + (emacs-lisp . t) + (python . t) + (sh . t) + (haskell . t) + (js . t) + (latex . t) + (C . t) + )) |