162 lines
4.5 KiB
EmacsLisp
162 lines
4.5 KiB
EmacsLisp
;; -*- mode: elisp -*-
|
|
|
|
;;;; packages
|
|
;;list package targets
|
|
(setq package-archives
|
|
'(("melpa" . "http://melpa.milkbox.net/packages/")
|
|
("gnu" . "http://elpa.gnu.org/packages/")
|
|
("elpy" . "http://jorgenschaefer.github.io/packages/")))
|
|
|
|
;;Refresh package contents
|
|
(unless package-archive-contents
|
|
(package-refresh-contents))
|
|
|
|
|
|
(unless (package-installed-p 'use-package)
|
|
(package-refresh-contents)
|
|
(package-install 'use-package))
|
|
|
|
(use-package try
|
|
:ensure t)
|
|
|
|
(use-package which-key
|
|
:ensure t
|
|
:config (which-key-mode))
|
|
|
|
(use-package ace-window
|
|
:ensure t
|
|
:init
|
|
(progn
|
|
(global-set-key [remap other-window] 'ace-window)))
|
|
|
|
(use-package outline-magic
|
|
:ensure t)
|
|
|
|
(use-package multiple-cursors
|
|
:ensure t)
|
|
|
|
(use-package rust-mode
|
|
:ensure t)
|
|
|
|
(use-package flycheck-rust
|
|
:ensure t)
|
|
|
|
(use-package racer
|
|
:ensure t)
|
|
|
|
(use-package helm
|
|
:ensure t)
|
|
|
|
(use-package eyebrowse
|
|
:ensure t)
|
|
(use-package pylint
|
|
:ensure t)
|
|
|
|
(use-package python-mode
|
|
:ensure t)
|
|
|
|
(use-package markdown-mode
|
|
:ensure t)
|
|
|
|
(use-package powershell
|
|
:ensure t)
|
|
|
|
(use-package ein
|
|
:ensure t)
|
|
|
|
(use-package elpy
|
|
:ensure t)
|
|
|
|
(use-package elpy
|
|
:ensure t)
|
|
|
|
(use-package flycheck
|
|
:ensure t)
|
|
|
|
(use-package znc
|
|
:ensure t)
|
|
|
|
(use-package twittering-mode
|
|
:ensure t)
|
|
|
|
(use-package pdf-tools
|
|
:ensure t)
|
|
|
|
(use-package magit
|
|
:ensure t)
|
|
|
|
(use-package exec-path-from-shell
|
|
:ensure t)
|
|
|
|
(use-package py-autopep8
|
|
:ensure t)
|
|
|
|
;;;;gpg shit
|
|
(setf epa-pinentry-mode 'loopback)
|
|
(setq auth-sources `("~/Documents/projects/agares/applicationConfiguration/.emacs/jlj-secrets.gpg"))
|
|
|
|
(load "~/Documents/projects/agares/applicationConfiguration/.emacs/jlj-misc.el")
|
|
(load "~/Documents/projects/agares/applicationConfiguration/.emacs/jlj-helm.el")
|
|
(load "~/Documents/projects/agares/applicationConfiguration/.emacs/jlj-org.el")
|
|
(load "~/Documents/projects/agares/applicationConfiguration/.emacs/jlj-python.el")
|
|
(load "~/Documents/projects/agares/applicationConfiguration/.emacs/jlj-rust.el")
|
|
(load "~/Documents/projects/agares/applicationConfiguration/.emacs/jlj-erc.el")
|
|
|
|
(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-enabled-themes (quote (manoj-dark)))
|
|
'(custom-safe-themes
|
|
(quote
|
|
("356e5cbe0874b444263f3e1f9fffd4ae4c82c1b07fe085ba26e2a6d332db34dd" "06f0b439b62164c6f8f84fdda32b62fb50b6d00e8b01c2208e55543a6337433a" default)))
|
|
'(org-capture-templates
|
|
(quote
|
|
(("c" "generic \"to do\" capture template" entry
|
|
(file "~/Nextcloud/Documents/org/refile-beorg.org")
|
|
"" :prepend t))))
|
|
'(org-modules
|
|
(quote
|
|
(org-bbdb org-bibtex org-docview org-gnus org-habit org-info org-irc org-mhe org-rmail org-w3m)))
|
|
'(package-selected-packages
|
|
(quote
|
|
(ace-window which-key try use-package dockerfile-mode ansible yaml-mode smex twittering-mode znc eyebrowse helm racer flycheck-rust rust-mode color-theme-sanityinc-tomorrow org2blog multiple-cursors flymake-python-pyflakes pdf-tools weechat jedi python-mode pylint py-autopep8 powershell outline-magic markdown-mode magit flycheck exec-path-from-shell elpygen elpy ein doom-themes csharp-mode)))
|
|
'(znc-servers
|
|
(\`
|
|
(("bouncer.awful.club" 5000 t
|
|
((freenode "blindidiotgod/freenode"
|
|
(\, znc-password))
|
|
(OFTC "blindidiotgod/OFTC"
|
|
(\, znc-password))))))))
|
|
|
|
;;;; run emacs as server (connect to it with `emacsclient`)
|
|
(server-start)
|
|
|
|
|
|
;; set some more keybindings
|
|
(global-set-key "\M-`" 'other-frame) ; mimic the way macosx switches between windows of the same application
|
|
|
|
;; look at https://www.emacswiki.org/emacs/Desktop
|
|
(require 'desktop)
|
|
(desktop-save-mode 1)
|
|
(defun jlj-desktop-save ()
|
|
(interactive)
|
|
;; Don't call desktop-save-in-desktop-dir, as it prints a message.
|
|
(if (eq (desktop-owner) (emacs-pid))
|
|
(desktop-save desktop-dirname)))
|
|
(add-hook 'auto-save-hook 'jlj-desktop-save)
|
|
|
|
;; always create two brackets
|
|
(electric-pair-mode 1)
|
|
(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.
|
|
'(org-level-1 ((t (:inherit outline-1 :height 1.3))))
|
|
'(org-level-2 ((t (:inherit outline-2 :height 1.2))))
|
|
'(org-level-3 ((t (:inherit outline-3 :height 1.1))))
|
|
'(org-level-4 ((t (:inherit outline-4 :height 1.1))))
|
|
'(org-level-5 ((t (:inherit outline-5 :height 1.1)))))
|