This is an old revision of the document!
(setq inhibit-startup-message t)
(tool-bar-mode -1)
(menu-bar-mode -1)
(scroll-bar-mode -1)
(global-hl-line-mode t)
(setq visible-bell 1)
(defalias 'yes-or-no-p 'y-or-n-p)
(show-paren-mode 1)
(ido-mode 1)
(setq ido-enable-flex-matching t)
(setq backup-directory-alist `1))
(setq custom-file “~/.emacs.d/custom-file.el”)
(when (file-readable-p custom-file)
(load-file custom-file))
(require 'package)
(package-initialize)
(add-to-list 'package-archives
'(“melpa” . “https://melpa.org/packages/”) t)
(when (not (package-installed-p 'use-package))
(package-refresh-contents)
(package-install 'use-package))
(use-package spacemacs-common
;; :ensure spacemacs-theme
;; if memory serves, this should be :defer t ?
:init (load-theme 'spacemacs-dark t))
(use-package magit
:ensure t)
; File location inconsistancies based on system
(let 2)
(setq org-incoming-file-path (expand-file-name “k.org”))
(setq org-personal-file-path (expand-file-name “m.org”))
(setq org-projects-file-path (expand-file-name “projects.org”))
(setq org-grocery-file-path (expand-file-name “grocery.org”))
(setq org-idea-file-path (expand-file-name “index.org”)))
(use-package evil
:ensure t
:init
(setq evil-want-C-i-jump nil) ; leaves <tab> for org-cycle
:config
(setq evil-toggle-key “C-z”)
(evil-mode 1)
(use-package evil-leader
:ensure t
:config
(global-evil-leader-mode t)
(evil-leader/set-leader “<SPC>”)
(evil-leader/set-key
“r” 'jump-to-register
“d x w” 'delete-trailing-whitespace
“g” 'magit
)
)
(use-package evil-surround
:ensure t
:config (global-evil-surround-mode))
(use-package evil-org
:ensure t
:config
(evil-org-set-key-theme
'(textobjects insert navigation additional shift todo heading))
(add-hook 'org-mode-hook (lambda () (evil-org-mode)))))
(use-package flycheck
:ensure t
:init (global-flycheck-mode))
(use-package ob-shell
:after org)
(use-package ob-python
:after org)
;; Rust-lang
;;(use-package rust-mode
;; :ensure t)
;;(use-package cargo-mode
;; :ensure t
;; :config
;; (add-hook 'rust-mode-hook 'cargo-minor-mode))
(use-package org
:config
(org-babel-do-load-languages
'org-babel-load-languages
'3))
; Registers
(set-register ?e '(file . “~/.emacs.d/init.el”))
(set-register ?b '(file . “~.bashrc”))
(set-register ?B '(file . “~/.bash_aliases”))
(set-register ?. (cons 'file org-incoming-file-path))
(set-register ?p (cons 'file org-personal-file-path))
(set-register ?P (cons 'file org-projects-file-path))
(set-register ?g (cons 'file org-grocery-file-path))
(set-register ?i (cons 'file org-idea-file-path))
; launching web browser from termx
(setq browse-url-browser-function 'browse-url-xdg-open)
"~/shared/org/") ((file-directory-p "c:/Users/marlo/SyncShare/org/") "c:/Users/marlo/SyncShare/org/"); “/Users/marlo/SyncShare/org”)
(t nil)))) (setq org-default-directory destination))(let ((default-directory org-default-directory
(python . t) (shell . t))) (setq org-agenda-files (list (concat org-default-directory "incoming.org") (concat org-default-directory "personal.org") (concat org-default-directory "projects.org") )) (setq org-startup-folded t) (setq org-refile-targets '( (nil :maxlevel . 5) (org-agenda-files :maxlevel . 5)))
:bind (("C-c a" . org-agenda) ("C-C s" . org-insert-structure-template) ("<f4>" . org-capture) ("C-c c" . org-capture) :map org-mode-map ("C-c i" . org-clock-in) ; evil-org-mode binds I ("C-c o" . org-clock-out)) ; evil-org-mode binds O
)(use-package helm
:ensure t;; :config ;; (require 'helm-config)
:init (helm-mode 1) :bind (("M-x" . helm-M-x) ; Evaluate functions ("C-x f" . helm-find-files) ; Open or create files ("C-x b" . helm-mini) ; Select buffers ("C-x C-r" . helm-recentf) ; Select recently saved files ("C-c i" . helm-imenu) ; Select document heading ("M-y" . helm-show-kill-ring) ; Show the kill ring :map helm-map ("C-z" . helm-select-action) ;;("<tab>" . helm-execute-persistent-action) ))(use-package which-key
:ensure t :config (which-key-mode) (setq which-key-idle 0.5 which-key-idle-delay 50) (which-key-setup-minibuffer))(use-package company
:ensure t :config (setq company-idle-delay 0 company-minimum-prefix-length 4 company-selection-wrap-around t))(global-company-mode) (use-package elfeed
:ensure t :config (setq elfeed-db-directory (expand-file-name "elfeed" user-emacs-directory) elfeed-show-entry-switch 'display-buffer) :bind ("C-x w" . elfeed ))(use-package elfeed-org
:ensure t :config(elfeed-org) (setq elfeed-show-entry-switch 'display-buffer) (setq rmh-elfeed-org-files (list “~/shared/org/elfeed.org”