Majorly re-organize modules

- Split large modules into smaller parts (e.g. siren-text-manipulation)
- Organize modules into high level groups:
  - completion
  - core
  - editor
  - languages
  - linting
  - misc
  - navigation
  - projects
  - spelling
  - text-editing
  - version-control
  - windows
  - workspaces
This commit is contained in:
2018-05-20 17:31:11 +01:00
parent 3b07c4cfbf
commit 87a86191db
118 changed files with 592 additions and 463 deletions

View File

@@ -0,0 +1,14 @@
;;; siren-browse-kill-ring.el --- jimeh's Emacs Siren: browse-kill-ring configuration.
;;; Commentary:
;; Basic configuration for browse-kill-ring.
;;; Code:
(use-package browse-kill-ring
:config
(browse-kill-ring-default-keybindings))
(provide 'siren-browse-kill-ring)
;;; siren-browse-kill-ring.el ends here

View File

@@ -0,0 +1,23 @@
;;; siren-edit-server.el --- jimeh's Emacs Siren: edit-server configuration.
;;; Commentary:
;; Basic configuration for edit-server.
;;; Code:
(use-package edit-server
:if window-system
:hook (after-init . edit-server-start)
:init
(setq edit-server-default-major-mode 'markdown-mode
edit-server-new-frame-alist
'((name . "Edit with Emacs FRAME")
(width . 90)
(height . 45)
(minibuffer . t)
(menu-bar-lines . t))))
(provide 'siren-edit-server)
;;; siren-edit-server.el ends here

View File

@@ -0,0 +1,27 @@
;;; siren-evil.el --- jimeh's Emacs Siren: evil configuration.
;;; Commentary:
;; Basic configuration for evil.
;;; Code:
;; Various evil config options borrowed from:
;; http://www.lukeswart.net/2015/04/lightning-intro-to-emacs-using-evil-mode-and-org-mode/
(use-package evil
:demand
:bind (:map evil-normal-state-map
;; Treat wrapped line scrolling as single lines.
("j" . evil-next-visual-line)
("k" . evil-previous-visual-line)
;; esc quits pretty much anything (like pending prompts in the minibuffer)
:map evil-normal-state-map ("<escape>" . keyboard-quit)
:map evil-visual-state-map ("<escape>" . keyboard-quit)
:map minibuffer-local-map ("<escape>" . minibuffer-keyboard-quit)
:map minibuffer-local-ns-map ("<escape>" . minibuffer-keyboard-quit)
:map minibuffer-local-completion-map ("<escape>" . minibuffer-keyboard-quit)
:map minibuffer-local-must-match-map ("<escape>" . minibuffer-keyboard-quit)
:map minibuffer-local-isearch-map ("<escape>" . minibuffer-keyboard-quit)))
(provide 'siren-evil)
;;; siren-evil.el ends here

View File

@@ -0,0 +1,16 @@
;;; siren-fci.el --- jimeh's Emacs Siren: fill-column-indicator configuration.
;;; Commentary:
;; Basic configuration for fill-column-indicator.
;;; Code:
(use-package fill-column-indicator
:hook (prog-mode . fci-mode)
:config
(setq fci-rule-width 1
fci-handle-trucate-lines nil))
(provide 'siren-fci)
;;; siren-fci.el ends here

View File

@@ -0,0 +1,15 @@
;;; siren-highlight-indent-guides.el --- jimeh's Emacs Siren: highlight-indent-guides-mode configuration.
;;; Commentary:
;; Basic configuration for highlight-indent-guides-mode.
;;; Code:
(use-package highlight-indent-guides
:defer t
:commands highlight-indent-guides-mode
:diminish highlight-indent-guides-mode)
(provide 'siren-highlight-indent-guides)
;;; siren-highlight-indent-guides.el ends here

View File

@@ -0,0 +1,15 @@
;;; siren-highlight-indentation.el --- jimeh's Emacs Siren: highlight-indentation-mode configuration.
;;; Commentary:
;; Basic configuration for highlight-indentation-mode.
;;; Code:
(use-package highlight-indentation
:defer t
:diminish (highlight-indentation-mode
highlight-indentation-current-column-mode))
(provide 'siren-highlight-indentation)
;;; siren-highlight-indentation.el ends here

View File

@@ -0,0 +1,35 @@
;;; siren-ido.el --- jimeh's Emacs Siren: ido configuration.
;;; Commentary:
;; Basic configuration for ido.
;;; Code:
(require 'ido)
(setq ido-auto-merge-work-directories-length -1
ido-case-fold t
ido-create-new-buffer 'always
ido-default-file-method 'selected-window
ido-enable-flex-matching t
ido-enable-prefix nil
ido-max-prospects 10
ido-save-directory-list-file (expand-file-name "ido.hist"
siren-savefile-dir)
ido-use-faces nil
ido-use-filename-at-point nil)
(ido-mode 1)
(use-package ido-completing-read+
:config
(ido-ubiquitous-mode 1))
(use-package ido-vertical-mode
:config
(setq ido-vertical-define-keys "C-n-C-p-up-down-left-right")
(ido-vertical-mode 1))
(provide 'siren-ido)
;;; siren-ido.el ends here

View File

@@ -0,0 +1,12 @@
;;; siren-linum-relative.el --- jimeh's Emacs Siren: linum-relative configuration.
;;; Commentary:
;; Basic configuration for linum-relative.
;;; Code:
(use-package linum-relative)
(provide 'siren-linum-relative)
;;; siren-linum-relative.el ends here

View File

@@ -0,0 +1,26 @@
;;; siren-linum.el --- jimeh's Emacs Siren: linum configuration.
;;; Commentary:
;; Basic configuration for linum.
;;; Code:
(use-package linum
:ensure nil ;; loaded from emacs built-ins
:hook (prog-mode . linum-mode))
(use-package linum+
:ensure nil ;; loaded from vendor
:after linum
:init
;; Customize line numbers - In GUI mode the fringe is the spacer between line
;; numbers and code, while in console mode we add an extra space for it.
(if window-system (setq linum+-dynamic-format " %%%dd")
(setq linum+-dynamic-format " %%%dd "))
:config
(setq linum-format 'dynamic))
(provide 'siren-linum)
;;; siren-linum.el ends here

View File

@@ -0,0 +1,14 @@
;;; siren-rainbow.el --- jimeh's Emacs Siren: rainbow-mode configuration.
;;; Commentary:
;; Basic configuration for rainbow-mode.
;;; Code:
(use-package rainbow-mode
:defer t
:diminish raindbox-mode)
(provide 'siren-rainbow)
;;; siren-rainbow.el ends here

View File

@@ -0,0 +1,22 @@
;;; siren-smex.el --- jimeh's Emacs Siren: smex.
;;; Commentary:
;; Replace M-x with the more powerful smex.
;;; Code:
(use-package smex
:bind
("M-x" . smex)
("M-X" . smex-major-mode-commands)
("C-x C-m" . smex)
("C-c C-m" . smex)
("C-c C-c M-x" . execute-extended-command)
:config
(setq smex-save-file (expand-file-name ".smex-items" siren-savefile-dir))
(smex-initialize))
(provide 'siren-smex)
;;; siren-smex.el ends here

View File

@@ -0,0 +1,28 @@
;;; siren-undo-tree.el --- jimeh's Emacs Siren: undo-tree configuration.
;;; Commentary:
;; Basic configuration for undo-tree.
;;; Code:
(use-package undo-tree
:demand
:bind
("C-x u" . undo-tree-visualize)
("M--" . undo-tree-undo)
("M-_" . undo-tree-redo)
("s-z" . undo-tree-undo)
("s-Z" . undo-tree-redo)
:diminish
undo-tree-mode
:config
(global-undo-tree-mode)
;; autosave the undo-tree history
(setq undo-tree-history-directory-alist `((".*" . ,temporary-file-directory))
undo-tree-auto-save-history t))
(provide 'siren-undo-tree)
;;; siren-undo-tree.el ends here

View File

@@ -0,0 +1,20 @@
;;; siren-volatile-highlights.el --- jimeh's Emacs Siren: volatile-highlights-mode configuration.
;;; Commentary:
;; Basic configuration for volatile-highlights-mode.
;;; Code:
(require 'siren-undo-tree)
(use-package volatile-highlights
:demand
:diminish volatile-highlights-mode
:config
(volatile-highlights-mode t)
(vhl/define-extension 'undo-tree 'undo-tree-yank 'undo-tree-move)
(vhl/install-extension 'undo-tree))
(provide 'siren-volatile-highlights)
;;; siren-volatile-highlights.el ends here

View File

@@ -0,0 +1,14 @@
;;; siren-which-key.el --- jimeh's Emacs Siren: which-key configuration.
;;; Commentary:
;; Basic configuration for which-key.
;;; Code:
(use-package which-key
:config
(which-key-mode))
(provide 'siren-which-key)
;;; siren-which-key.el ends here