summaryrefslogblamecommitdiff
path: root/emacs.el
blob: f4bfe0e5496e953d7ae75802c898883c744c929e (plain) (tree)
1
2
3
4
5




                                








                                                                   




                                                                                  


                                                                            

                    





                                          

        

















                                






                               














                      
 





                                              
 



                  
;; dotfiles -- emacs.johannst.el
;; author: johannst

(provide 'johannst)

;; config
(custom-set-variables
 '(font-use-system-font t)
 '(indent-tabs-mode nil)
 '(inhibit-startup-screen t)
 '(tool-bar-mode nil)
 '(whitespace-style '(trailing tabs newline tab-mark newline-mark))
 )

;; fix 'bad request' on package-refresh-contents (should be fixed with emcas 26.3)
(setq gnutls-algorithm-priority "NORMAL:-VERS-TLS1.3")

;; ELPA & MELPA
(require 'package)
(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/") t)
(add-to-list 'package-archives '("gnu" . "http://elpa.gnu.org/packages/") t)
(setq package-enable-at-startup nil)
(package-initialize)

;; bootstrap use-package
(unless (package-installed-p 'use-package)
  (package-refresh-contents)
  (package-install 'use-package))
(eval-when-compile
  (require 'use-package))

;; theme
(use-package spacemacs-theme
  :ensure t
  :defer t
  :init
  (load-theme 'spacemacs-dark t)
  )

;; evil
(use-package evil
  :ensure t
  :config
  (evil-mode t)
  )

;; org
(use-package org
  :config
  (setq org-log-done t)
  :bind
  (:map org-mode-map
        ("M-j" . org-metadown)
        ("M-h" . org-metaleft)
        ("M-l" . org-metaright)
        ("M-k" . org-metaup)
        )
  )

;; help
(use-package helm
  :ensure t
  :config
  (helm-mode t)
  )

;; rust-mode
(use-package rust-mode
  :ensure t
  :config
  (helm-mode t)
  )

;; cargo
(use-package cargo
  :ensure t
  :config
  (add-hook 'rust-mode-hook 'cargo-minor-mode)
  )

;; magit
(use-package magit
  :ensure t
  )