summaryrefslogtreecommitdiff
path: root/.emacs
diff options
context:
space:
mode:
Diffstat (limited to '.emacs')
-rw-r--r--.emacs75
1 files changed, 73 insertions, 2 deletions
diff --git a/.emacs b/.emacs
index 26dbda3..9392d34 100644
--- a/.emacs
+++ b/.emacs
@@ -13,18 +13,22 @@
(package-initialize) ;; You might already have this line
(add-to-list 'package-archives
'("melpa-stable" . "https://stable.melpa.org/packages/") t)
+(add-to-list 'package-archives '("org" . "https://orgmode.org/elpa/") t)
(ac-config-default)
(setq c-default-style "k&r"
c-basic-offset 4)
-
+(setq evil-want-integration nil) ;; This is optional since it's already set to t by default.
+(setq evil-want-keybinding nil)
+(evil-collection-init)
(add-to-list 'auto-mode-alist '("\\.ino\\'" . c++-mode))
(require 'evil)
(evil-mode 1)
+
(require 'evil-surround)
(global-evil-surround-mode 1)
@@ -33,7 +37,10 @@
;; 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.
- '(package-selected-packages (quote (jedi evil-surround buffer-move auto-complete))))
+ '(package-selected-packages
+ (quote
+ (evil-collection notmuch company-c-headers org jedi evil-surround buffer-move auto-complete)))
+ )
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
@@ -43,3 +50,67 @@
(add-hook 'python-mode-hook 'jedi:setup)
(setq jedi:complete-on-dot t) ; optional
+
+;; Auto-complete (AC)
+(require 'auto-complete)
+
+(require 'auto-complete-config)
+(ac-config-default)
+
+(require 'company)
+(add-hook 'global-init-hook 'global-company-mode)
+(add-to-list 'company-backends 'company-c-headers)
+
+;
+;(require 'mu4e)
+;(setq mu4e-maildir "~/Mail/mailbox")
+;(setq mu4e-drafts-folder "/Drafts")
+;(setq mu4e-sent-folder "/Sent")
+;(setq mu4e-trash-folder "/Trash")
+;(setq mu4e-refile-folder "/Archive")
+;
+;(setq mu4e-get-mail-command "offlineimap")
+;;; shortcuts
+;(setq mu4e-maildir-shortcuts
+ ;'( ("/INBOX" . ?i)
+ ;("/Archive" . ?a)))
+;
+;;; something about ourselves
+;(setq
+ ;user-mail-address "julian@jtle.dk"
+ ;user-full-name "Julian T"
+ ;)
+;
+;;; show images
+;(setq mu4e-show-images t)
+;
+;;; use imagemagick, if available
+;(when (fboundp 'imagemagick-register-types)
+ ;(imagemagick-register-types))
+;
+;;; convert html emails properly
+;;; Possible options:
+;;; - html2text -utf8 -width 72
+;;; - textutil -stdin -format html -convert txt -stdout
+;;; - html2markdown | grep -v '&nbsp_place_holder;' (Requires html2text pypi)
+;;; - w3m -dump -cols 80 -T text/html
+;;; - view in browser (provided below)
+;(setq mu4e-html2text-command "html2text")
+;
+;;; add option to view html message in a browser
+;;; `aV` in view to activate
+;(add-to-list 'mu4e-view-actions
+ ;'("ViewInBrowser" . mu4e-action-view-in-browser) t)
+;
+;;; fetch mail every 10 mins
+;(setq mu4e-update-interval 600)
+;
+;
+;(setf initial-buffer-choice (lambda () (mu4e)))
+;
+;(setq message-send-mail-function 'smtpmail-send-it)
+;
+;(setq smtpmail-default-smtp-server "smtp.mailbox.org"
+ ;smtpmail-smtp-server "smtp.mailbox.org"
+ ;smtpmail-smtp-service 465)
+;