From 015004c2ff472b79cf279f3b818f6eb0345fdb73 Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Wed, 25 Apr 2018 19:17:26 +0100 Subject: Adding mail to emacs --- emacs/init.el | 290 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ emacs/loader.org | 87 +++++++++-------- i3/config | 6 ++ 3 files changed, 339 insertions(+), 44 deletions(-) diff --git a/emacs/init.el b/emacs/init.el index 0c5a292..63d3f77 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -1,2 +1,292 @@ + +;; Added by Package.el. This must come before configurations of +;; installed packages. Don't delete this line. If you don't want it, +;; just comment it out by adding a semicolon to the start of the line. +;; You may delete these explanatory comments. +(package-initialize) + +(custom-set-variables + ;; custom-set-variables was added by Custom. + ;; 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. + '(custom-safe-themes + (quote + ("90bd0eb20a1cb155b5a076f698b3c72cfe775aa7ea93b7bfbc171eb250db5e20" "43c1a8090ed19ab3c0b1490ce412f78f157d69a29828aa977dae941b994b4147" "a866134130e4393c0cad0b4f1a5b0dd580584d9cf921617eee3fd54b6f09ac37" "06f0b439b62164c6f8f84fdda32b62fb50b6d00e8b01c2208e55543a6337433a" "ad109c1ad8115573f40e22ac2b996693b5d48052fa37b5919f70ea37c62a965e" "77bddca0879cb3b0ecdf071d9635c818827c57d69164291cb27268ae324efa84" "1b8d67b43ff1723960eb5e0cba512a2c7a2ad544ddb2533a90101fd1852b426e" "628278136f88aa1a151bb2d6c8a86bf2b7631fbea5f0f76cba2a0079cd910f7d" default))) + '(initial-frame-alist (quote ((fullscreen . maximized)))) + '(jdee-server-dir "/home/yannherklotz/.emacs.d/jars/") + '(org-agenda-files nil) + '(package-selected-packages + (quote + (rust-mode helm-ag edit-indirect ox-twbs request-deferred alert org-gcal plan9-theme monokai-theme material-theme diminish telephone-line monokai smart-tabs-mode zenburn-theme yasnippet use-package undo-tree smartparens pug-mode powerline paredit org-bullets multiple-cursors moe-theme leuven-theme jedi hungry-delete haskell-mode gruvbox-theme glsl-mode ggtags flycheck counsel-projectile company-c-headers color-theme-sanityinc-tomorrow color-theme cider bison-mode base16-theme ace-window))) + '(safe-local-variable-values + (quote + ((projectile-project-run-cmd . "./build/bin/") + (projectile-project-compilation-cmd . "mkdir -p build && cd build && cmake -GNinja -DCMAKE_EXPORT_COMPILE_COMMANDS=ON .. && ninja -j4") + (projectile-project-compilation-cmd . "mkdir -p build && cd build && cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON .. && make -j4") + (projectile-project-compilation-cmd . "mkdir -p build && cd build && cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON .. && make -j") + (projectile-project-run-cmd . "./build/bin/learn_opengl") + (projectile-project-compilation-cmd . "mkdir -p build && cd build && cmake .. && make -j") + (projectile-project-run-cmd . "./build/bin/simplegame") + (projectile-project-test-cmd . "cd build/tests && ctest") + (projectile-project-compilation-cmd . "mkdir -p build && cd build && cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DYAGE_BUILD_TESTS=ON .. && make -j9") + (company-c-headers-path-user "../include/") + (company-clang-arguments "-I../include/") + (projectile-project-run-cmd . "./bin/simplegame") + (projectile-project-test-cmd . "cd build && ctest") + (projectile-project-compilation-cmd . "mkdir -p build && cd build && cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DUNIT_TESTS=ON .. && make -j9") + (eval progn + (require + (quote projectile)) + (setq company-clang-arguments + (delete-dups + (append company-clang-arguments + (list + (concat "-I" + (projectile-project-root) + "yage"))))) + (setq company-clang-arguments + (delete-dups + (append company-clang-arguments + (list + (concat "-I" + (projectile-project-root) + "lib/googletest/googletest/include"))))) + (setq flycheck-clang-include-path + (delete-dups + (append flycheck-clang-include-path + (list + (concat + (projectile-project-root) + "yage"))))) + (setq flycheck-clang-include-path + (delete-dups + (append flycheck-clang-include-path + (list + (concat + (projectile-project-root)))))) + (setq flycheck-clang-include-path + (delete-dups + (append flycheck-clang-include-path + (list + (concat + (projectile-project-root) + "lib/googletest/googletest/include")))))) + (eval progn + (require + (quote projectile)) + (setq company-clang-arguments + (delete-dups + (append company-clang-arguments + (list + (concat "-I" + (projectile-project-root) + "include"))))) + (setq flycheck-clang-include-path + (delete-dups + (append flycheck-clang-include-path + (list + (concat + (projectile-project-root) + "include")))))) + (eval progn + (require + (quote projectile)) + (setq company-clang-arguments + (delete-dups + (append company-clang-arguments + (list + (concat "-I" + (projectile-project-root) + "include")))))) + (eval progn + (require + (quote projectile)) + (setq company-clang-arguments + (delete-dups + (append company-clang-arguments + (list + (concat "-I" + (projectile-project-root) + "yage")))))) + (eval progn + (require + (quote projectile)) + (setq company-clang-arguments + (delete-dups + (append company-clang-arguments + (list + (concat "-I" + (projectile-project-root) + "yage"))))) + (setq company-clang-arguments + (delete-dups + (append company-clang-arguments + (list + (concat "-I" + (projectile-project-root)))))) + (setq company-clang-arguments + (delete-dups + (append company-clang-arguments + (list + (concat "-I" + (projectile-project-root) + "lib/googletest/googletest/include"))))) + (setq company-clang-arguments + (delete-dups + (append company-clang-arguments + (list + (concat "-I" + (projectile-project-root) + "lib/rapidjson/include"))))) + (setq company-clang-arguments + (delete-dups + (append company-clang-arguments + (list + (concat "-I" + (projectile-project-root) + "lib/glfw/include"))))) + (setq company-clang-arguments + (delete-dups + (append company-clang-arguments + (list + (concat "-I" + (projectile-project-root) + "lib/glad/include"))))) + (setq flycheck-clang-include-path + (delete-dups + (append flycheck-clang-include-path + (list + (concat + (projectile-project-root) + "yage"))))) + (setq flycheck-clang-include-path + (delete-dups + (append flycheck-clang-include-path + (list + (concat + (projectile-project-root)))))) + (setq flycheck-clang-include-path + (delete-dups + (append flycheck-clang-include-path + (list + (concat + (projectile-project-root) + "lib/googletest/googletest/include"))))) + (setq flycheck-clang-include-path + (delete-dups + (append flycheck-clang-include-path + (list + (concat + (projectile-project-root) + "lib/glfw/include"))))) + (setq flycheck-clang-include-path + (delete-dups + (append flycheck-clang-include-path + (list + (concat + (projectile-project-root) + "lib/glad/include"))))) + (setq flycheck-clang-include-path + (delete-dups + (append flycheck-clang-include-path + (list + (concat + (projectile-project-root) + "lib/rapidjson/include")))))) + (eval progn + (require + (quote projectile)) + (setq company-clang-arguments + (delete-dups + (append company-clang-arguments + (list + (concat "-I" + (projectile-project-root) + "yage"))))) + (setq company-clang-arguments + (delete-dups + (append company-clang-arguments + (list + (concat "-I" + (projectile-project-root)))))) + (setq company-clang-arguments + (delete-dups + (append company-clang-arguments + (list + (concat "-I" + (projectile-project-root) + "lib/googletest/googletest/include"))))) + (setq company-clang-arguments + (delete-dups + (append company-clang-arguments + (list + (concat "-I" + (projectile-project-root) + "lib/rapidjson/include"))))) + (setq company-clang-arguments + (delete-dups + (append company-clang-arguments + (list + (concat "-I" + (projectile-project-root) + "lib/glfw/include"))))) + (setq company-clang-arguments + (delete-dups + ((append) + company-clang-arguments + (list + (concat "-I" + (projectile-project-root) + "lib/glad/include"))))) + (setq flycheck-clang-include-path + (delete-dups + (append flycheck-clang-include-path + (list + (concat + (projectile-project-root) + "yage"))))) + (setq flycheck-clang-include-path + (delete-dups + (append flycheck-clang-include-path + (list + (concat + (projectile-project-root)))))) + (setq flycheck-clang-include-path + (delete-dups + (append flycheck-clang-include-path + (list + (concat + (projectile-project-root) + "lib/googletest/googletest/include"))))) + (setq flycheck-clang-include-path + (delete-dups + (append flycheck-clang-include-path + (list + (concat + (projectile-project-root) + "lib/glfw/include"))))) + (setq flycheck-clang-include-path + (delete-dups + ((append) + flycheck-clang-include-path + (list + (concat + (projectile-project-root) + "lib/glad/include"))))) + (setq flycheck-clang-include-path + (delete-dups + (append flycheck-clang-include-path + (list + (concat + (projectile-project-root) + "lib/rapidjson/include")))))))))) +(custom-set-faces + ;; custom-set-faces was added by Custom. + ;; 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. + ) + (setq init-dir (file-name-directory (or load-file-name (buffer-file-name)))) (org-babel-load-file (expand-file-name "loader.org" init-dir)) diff --git a/emacs/loader.org b/emacs/loader.org index ca1c831..8f97660 100644 --- a/emacs/loader.org +++ b/emacs/loader.org @@ -77,6 +77,7 @@ yes or no. (tool-bar-mode -1) (menu-bar-mode -1) (fset 'yes-or-no-p 'y-or-n-p) + (diminish 'abbrev-mode) #+END_SRC Move the backup files into the temporaty directory so that they are out of the way. @@ -126,6 +127,15 @@ using the emacsclient. #+END_SRC +* Mail + +#+BEGIN_SRC emacs-lisp + (require 'mu4e) + + (setq mu4e-maildir (expand-file-name "~/.mail/gmail")) +#+END_SRC + + * Utility ** Diminish modes @@ -392,6 +402,32 @@ Wrap words when in text mode. My emacs configuration is mostly focused on programming, therefore there is a lot of different language support. +** Version Control and Project Management +*** Magit + +#+BEGIN_SRC emacs-lisp + (use-package magit + :ensure t + :bind (("C-x g" . magit-status))) +#+END_SRC + +*** Projectile + +#+BEGIN_SRC emacs-lisp + (use-package projectile + :ensure t + :diminish projectile-mode + :config + (projectile-global-mode 1) + (setq projectile-indexing-method 'alien) + (setq projectile-enable-caching t)) + + (use-package counsel-projectile + :ensure t + :config + (counsel-projectile-mode t)) +#+END_SRC + ** Language Support *** C++ @@ -469,10 +505,10 @@ language support. :config (rtags-enable-standard-keybindings)) - ;; (use-package ivy-rtags - ;; :ensure t - ;; :config - ;; (setq rtags-use-ivy t)) + (use-package ivy-rtags + :ensure t + :config + (setq rtags-use-ivy t)) #+END_SRC *** Clojure @@ -534,14 +570,7 @@ language support. #+BEGIN_SRC emacs-lisp (use-package haskell-mode - :ensure t - :config - (add-hook 'haskell-mode-hook 'interactive-haskell-mode) - (add-hook 'haskell-mode-hook - (lambda () - (set (make-local-variable 'company-backends) - (append '((company-capf company-dabbrev-code)) - company-backends))))) + :ensure t) #+END_SRC *** Org @@ -675,7 +704,7 @@ language support. :ensure t) #+END_SRC - + ** Completion Support *** Company @@ -692,17 +721,14 @@ language support. (define-key c++-mode-map (kbd "C-c n") 'company-complete) (setq company-dabbrev-downcase 0)) #+END_SRC - *** Flycheck - +Enabling global flycheck support. #+BEGIN_SRC emacs-lisp - (use-package flycheck :ensure t :diminish flycheck-mode :init (global-flycheck-mode)) - #+END_SRC *** Yasnippets @@ -717,33 +743,6 @@ language support. #+END_SRC -** Version Control and Project Management -*** Magit - -#+BEGIN_SRC emacs-lisp - (use-package magit - :ensure t - :bind (("C-x g" . magit-status))) -#+END_SRC - -*** Projectile - -#+BEGIN_SRC emacs-lisp - (use-package projectile - :ensure t - :diminish projectile-mode - :config - (projectile-global-mode 1) - (setq projectile-indexing-method 'alien) - (setq projectile-enable-caching t)) - - (use-package counsel-projectile - :ensure t - :config - (counsel-projectile-mode t)) -#+END_SRC - - * Look and Feel #+BEGIN_SRC emacs-lisp diff --git a/i3/config b/i3/config index cbd7047..24f8797 100644 --- a/i3/config +++ b/i3/config @@ -219,5 +219,11 @@ exec --no-startup-id redshift & # Startup dropbox exec --no-startup-id dropbox & +# Start nm-applet +exec --no-startup-id nm-applet & + +# Start pulse audio system tray + + # Enable smooth scrolling exec --no-startup-id xinput set-prop 'DLL075B:01 06CB:76AF Touchpad' 'libinput Natural Scrolling Enabled' 1 -- cgit