mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
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:
38
modules/core/siren-aliases.el
Normal file
38
modules/core/siren-aliases.el
Normal file
@@ -0,0 +1,38 @@
|
||||
;;; siren-aliases.el --- jimeh's Emacs Siren: Common aliases
|
||||
|
||||
;;; Commentary:
|
||||
|
||||
;; Common aliases for built-in commands.
|
||||
|
||||
;;; Code:
|
||||
|
||||
;; Text Manipulation
|
||||
(defalias 'rs 'replace-string)
|
||||
(defalias 'al 'align-regexp)
|
||||
(defalias 'sl 'sort-lines)
|
||||
(defalias 'rr 'reverse-region)
|
||||
(defalias 'wc 'whitespace-cleanup)
|
||||
|
||||
(defalias 'lml 'list-matching-lines)
|
||||
(defalias 'dml 'delete-matching-lines)
|
||||
(defalias 'dnml 'delete-non-matching-lines)
|
||||
(defalias 'dtw 'delete-trailing-whitespace)
|
||||
|
||||
;; Buffer Manipulation
|
||||
(defalias 'rb 'revert-buffer)
|
||||
|
||||
;; Emacs Lisp
|
||||
(defalias 'eb 'eval-buffer)
|
||||
(defalias 'er 'eval-region)
|
||||
(defalias 'ed 'eval-defun)
|
||||
(defalias 'eis 'elisp-index-search)
|
||||
(defalias 'lf 'load-file)
|
||||
|
||||
;; Dired
|
||||
(defalias 'wd 'wdired-change-to-wdired-mode)
|
||||
|
||||
;; Modes
|
||||
(defalias 'sh 'shell-script-mode)
|
||||
|
||||
(provide 'siren-aliases)
|
||||
;;; siren-aliases.el ends here
|
||||
57
modules/core/siren-global-keybindings.el
Normal file
57
modules/core/siren-global-keybindings.el
Normal file
@@ -0,0 +1,57 @@
|
||||
;;; siren-global-keybindings.el --- jimeh's Emacs Siren: Global keybindings.
|
||||
|
||||
;;; Commentary:
|
||||
|
||||
;; Basic global keybindings.
|
||||
|
||||
;;; Code:
|
||||
|
||||
;; Enable dabbrev-expand via custom keybinding.
|
||||
(global-set-key (kbd "C-x M-/") 'dabbrev-expand)
|
||||
|
||||
;; Easier version of "C-x k" to kill buffer
|
||||
(global-set-key (kbd "C-x C-k") 'kill-buffer)
|
||||
|
||||
;; Evaluate buffer
|
||||
(global-set-key (kbd "C-c C-e") 'eval-buffer)
|
||||
|
||||
;; Window switching
|
||||
(global-set-key (kbd "C-x i") 'siren-other-window-reverse)
|
||||
(global-set-key (kbd "C-x C-o") 'other-window)
|
||||
(global-set-key (kbd "C-x C-i") 'siren-other-window-reverse)
|
||||
|
||||
;; Window management
|
||||
(global-set-key (kbd "C-x C-SPC") 'balance-windows)
|
||||
(global-set-key (kbd "C-x SPC") 'balance-windows)
|
||||
|
||||
;; Kill-Ring related
|
||||
(global-set-key (kbd "M-Y") 'siren-yank-pop-forwards)
|
||||
|
||||
;; Align to equal signs
|
||||
(global-set-key (kbd "C-x a =") 'siren-align-region-to-equals)
|
||||
(global-set-key (kbd "C-x a {") 'siren-align-region-to-opening-brace)
|
||||
|
||||
;; align-regexp
|
||||
(global-set-key (kbd "C-c a") 'align-regexp)
|
||||
|
||||
;; Toggle auto-fill-mode.
|
||||
(global-set-key (kbd "C-c q") 'auto-fill-mode)
|
||||
|
||||
;; iBuffer
|
||||
(global-set-key (kbd "C-x C-b") 'ibuffer)
|
||||
|
||||
;; Rename current file and buffer
|
||||
(global-set-key (kbd "C-c r") 'siren-rename-file-and-buffer)
|
||||
|
||||
;; Mac OS X specific keybindings
|
||||
(when (eq system-type 'darwin)
|
||||
;; Move to beginning/end of buffer
|
||||
(global-set-key (kbd "s-<up>") 'beginning-of-buffer)
|
||||
(global-set-key (kbd "s-<down>") 'end-of-buffer)
|
||||
|
||||
;; Move to beginning/end of line
|
||||
(global-set-key (kbd "s-<left>") 'beginning-of-line)
|
||||
(global-set-key (kbd "s-<right>") 'end-of-line))
|
||||
|
||||
(provide 'siren-global-keybindings)
|
||||
;;; siren-global-keybindings.el ends here
|
||||
23
modules/core/siren-packages.el
Normal file
23
modules/core/siren-packages.el
Normal file
@@ -0,0 +1,23 @@
|
||||
;;; siren-packages.el --- jimeh's Emacs Siren: avy configuration.
|
||||
|
||||
;;; Commentary:
|
||||
|
||||
;; Basic configuration for packages.
|
||||
|
||||
;;; Code:
|
||||
|
||||
(require 'siren-flycheck)
|
||||
|
||||
(use-package package-lint
|
||||
:defer t)
|
||||
|
||||
(use-package package-build
|
||||
:defer t)
|
||||
|
||||
(use-package flycheck-package
|
||||
:defer t
|
||||
:config
|
||||
(flycheck-package-setup))
|
||||
|
||||
(provide 'siren-packages)
|
||||
;;; siren-packages.el ends here
|
||||
Reference in New Issue
Block a user