aboutsummaryrefslogtreecommitdiffstats
path: root/emacs/init.el
diff options
context:
space:
mode:
Diffstat (limited to 'emacs/init.el')
-rw-r--r--emacs/init.el298
1 files changed, 298 insertions, 0 deletions
diff --git a/emacs/init.el b/emacs/init.el
new file mode 100644
index 0000000..291e574
--- /dev/null
+++ b/emacs/init.el
@@ -0,0 +1,298 @@
+(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
+ ("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
+ (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-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.
+ )
+
+(require 'package)
+(setq package-enable-at-startup nil)
+(add-to-list 'package-archives
+ '("melpa" . "https://melpa.org/packages/"))
+(add-to-list 'package-archives '("org" . "https://orgmode.org/elpa/") t)
+(package-initialize)
+
+;; Bootstrap `use-package'
+(unless (package-installed-p 'use-package)
+ (package-refresh-contents)
+ (package-install 'use-package))
+
+(require 'use-package)
+(require 'diminish)
+
+(org-babel-load-file (expand-file-name "~/.emacs.d/myinit.org"))