 (add-to-list 'mu4e-view-actions
              '("View in browser" . mu4e-msgv-action-view-in-browser) t)
 
-;; need this to convert some e-mails properly
-;; (setq mu4e-html2text-command "html2text -utf8 -width 72")
-(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
-    ("0ba649556dc51762e6794b92017f6f7406754ae3136eafef686d81c6da176cc5" default)))
- '(package-selected-packages
-   (quote
-    (flatui-theme wgrep-ag vc-darcs tup-mode sx swift-mode sublime-themes rust-mode repl-toggle python-mode pyde pixie-mode ninja-mode mwim lua-mode greymatters-theme google-translate glsl-mode expand-region exec-path-from-shell elpy define-word ag ace-jump-buffer))))
-(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 mu4e-html2text-command "html2text -utf8 -width 72")
+
+
+(global-set-key (kbd "RET") 'newline-and-indent)
+(global-set-key (kbd "M-r") 'recompile)
+(global-set-key (kbd "C-=") 'er/expand-region)
+(global-set-key (kbd "C-c t") 'visit-term-buffer)
+(global-set-key (kbd "C-;") 'ace-jump-mode)
+(global-set-key (kbd "C-,") 'ace-jump-buffer)
+(global-set-key (kbd "C-c m") 'mu4e)
+(global-set-key (kbd "C-a") 'mwim-beginning-of-code-or-line)
+;; (global-set-key (kbd "C-e") 'mwim-end-of-code-or-line)

(which-function-mode)
(column-number-mode)
(iswitchb-mode t)   ;; substring buffer switch
(setq-default indent-tabs-mode nil)  ;; nevklada tabs ale white spaces
(setq-default tab-width 4)
(winner-mode t)   ;; C-c <left|right>
(setq font-lock-maximum-decoration 1)
(setq vc-diff-switches "-u")
(set-language-environment "czech")
(setq default-input-method "czech-qwerty")
(prefer-coding-system 'utf-8)

(when (equal system-type 'gnu/linux)
  (setq mu4e-mu-binary "/usr/bin/mu"))

(setq mu4e-maildir "~/Maildir"
      mu4e-drafts-folder "/[Gmail].Drafts"
      mu4e-sent-folder   "/[Gmail].Sent Mail"
      mu4e-trash-folder  "/[Gmail].Trash"
      mu4e-maildir-shortcuts
      '( ("/INBOX"             . ?i)
         ("/[Gmail].Sent Mail" . ?s)
         ("/[Gmail].Trash"     . ?t)
         ("/[Gmail].All Mail"  . ?a))
      mu4e-get-mail-command "offlineimap -q"
      mu4e-update-interval nil
      mu4e-view-show-images t
      mu4e-html2text-command "html2text -utf8"
      mu4e-headers-skip-duplicates t
      user-mail-address "capak@inputwish.com"
      user-full-name  "Libor Čapák"
      mail-signature nil
      mail-signature-file nil
      message-signature nil
      mu4e-compose-signature nil
      mu4e-compose-signature-auto-include nil
      mu4e-sent-message-behaviour 'delete
      mu4e-hide-index-messages t
      mu4e-view-show-addresses t
      mu4e-date-format-long "%d.%m.%Y"
      mu4e-headers-date-format "%d.%m.%y"
      mu4e-confirm-quit nil)
;; (setq mu4e-use-fancy-chars t)

(require 'smtpmail)

