Change header/footer comment of all files to make elisp happy

This commit is contained in:
2016-01-31 10:39:26 +00:00
parent b31ce521c8
commit e71ed5fc4e
67 changed files with 544 additions and 279 deletions

View File

@@ -1,7 +1,11 @@
;; ;;; siren-core.el --- jimeh's Emacs Siren: Core Siren functions.
;; core stuff - again shamelessly ripped from Emacs Prelude
;;
;;; Commentary:
;; Core Siren functions used a bit all over the place. Some of them shamelessly
;; ripped from Emacs Prelude.
;;; Code:
(defun siren-smart-open-line-above () (defun siren-smart-open-line-above ()
"Insert an empty line above the current line. "Insert an empty line above the current line.
@@ -20,3 +24,4 @@ Position the cursor at it's beginning, according to the current mode."
(provide 'siren-core) (provide 'siren-core)
;;; siren-core.el ends here

View File

@@ -1,6 +1,12 @@
;;; siren-custom.el --- jimeh's Emacs Siren: Siren's customizable variables.
;;; Commentary:
;; Refinements of the core editing experience in Emacs.
;; ;;
;; siren custom ;; Shamelessly ripped from Emacs Prelude.
;;
;;; Code:
(defcustom siren-yank-indent-threshold 1000 (defcustom siren-yank-indent-threshold 1000
"Threshold (# chars) over which indentation does not automatically occur." "Threshold (# chars) over which indentation does not automatically occur."
@@ -20,4 +26,5 @@ Only modes that don't derive from `prog-mode' should be listed here."
:group 'siren) :group 'siren)
(provide 'siren-custom) (provide 'siren-custom)
;;; siren-custom.el ends here

View File

@@ -1,6 +1,10 @@
;; ;;; siren-core.el --- jimeh's Emacs Siren: Editor settings.
;; editor
;; ;;; Commentary:
;; Default editor settings for Siren.
;;; Code:
;; Set default font ;; Set default font
(if window-system (if window-system
@@ -202,6 +206,5 @@ indent yanked text (with prefix arg don't indent)."
;; (diminish 'hs-minor-mode) ;; (diminish 'hs-minor-mode)
;; (diminish 'subword-mode) ;; (diminish 'subword-mode)
(provide 'siren-editor) (provide 'siren-editor)
;;; siren-editor.el ends here

View File

@@ -1,6 +1,11 @@
;; ;;; siren-env.el --- jimeh's Emacs Siren: Environment variable setup.
;; env
;; ;;; Commentary:
;; Setup for various environment variables to ensure external programs are
;; available.
;;; Code:
;; Nix package manager ;; Nix package manager
(push "~/.nix-profile/bin" exec-path) (push "~/.nix-profile/bin" exec-path)
@@ -20,3 +25,4 @@
(provide 'siren-env) (provide 'siren-env)
;;; siren-env.el ends here

View File

@@ -1,6 +1,10 @@
;; ;;; siren-osx.el --- jimeh's Emacs Siren: OS X specific settings.
;; osx
;; ;;; Commentary:
;; OS X specific settings and tweaks for Siren.
;;; Code:
;; It's all in the Meta ;; It's all in the Meta
(setq ns-function-modifier 'hyper) (setq ns-function-modifier 'hyper)
@@ -8,5 +12,5 @@
;; Don't use OSX Native fullscreen mode ;; Don't use OSX Native fullscreen mode
(setq ns-use-native-fullscreen nil) (setq ns-use-native-fullscreen nil)
(provide 'siren-osx)
(provide 'siren-osx) ;;; siren-osx.el ends here

View File

@@ -1,6 +1,10 @@
;; ;;; siren-packages.el --- jimeh's Emacs Siren: Core package setup
;; packages
;; ;;; Commentary:
;; Install and configure various packages that the core of Siren depends on.
;;; Code:
(require 'cl) (require 'cl)
(require 'package) (require 'package)
@@ -66,5 +70,5 @@ Missing packages are installed automatically."
;; Install Melpa packages ;; Install Melpa packages
(siren-install-packages) (siren-install-packages)
(provide 'siren-packages) (provide 'siren-packages)
;;; siren-packages.el ends here

View File

@@ -1,6 +1,10 @@
;; ;;; siren-ui.el --- jimeh's Emacs Siren: Emacs UI settings.
;; ui
;; ;;; Commentary:
;; Basic configuration of Emacs UI for Siren.
;;; Code:
;; the toolbar is just a waste of valuable screen estate ;; the toolbar is just a waste of valuable screen estate
;; in a tty tool-bar-mode does not properly auto-load, and is ;; in a tty tool-bar-mode does not properly auto-load, and is
@@ -48,5 +52,5 @@
(setq sml/theme nil) (setq sml/theme nil)
(add-hook 'after-init-hook #'sml/setup) (add-hook 'after-init-hook #'sml/setup)
(provide 'siren-ui) (provide 'siren-ui)
;;; siren-ui.el ends here

12
init.el
View File

@@ -1,8 +1,10 @@
;; ;;; init.el --- jimeh's Emacs Siren: init file.
;; Emacs Configuration
;;
;; Set root directory of Emacs config ;;; Commentary:
;; The file that starts it all.
;;; Code:
;; I need to keep this here commented out like this to prevent package.el from ;; I need to keep this here commented out like this to prevent package.el from
;; automatically adding it again. I call `(package-initalize)' manually from ;; automatically adding it again. I call `(package-initalize)' manually from
@@ -83,3 +85,5 @@
;; the theme ;; the theme
(if (file-exists-p siren-theme-file) (if (file-exists-p siren-theme-file)
(load siren-theme-file)) (load siren-theme-file))
;;; init.el ends here

View File

@@ -1,6 +1,10 @@
;; ;;; siren-aliases.el --- jimeh's Emacs Siren: Common aliases
;; Setup a few global command aliases
;; ;;; Commentary:
;; Common aliases I use all the time.
;;; Code:
;; Text Manipulation ;; Text Manipulation
(defalias 'rs 'replace-string) (defalias 'rs 'replace-string)
@@ -31,5 +35,5 @@
;; Modes ;; Modes
(defalias 'sh 'shell-script-mode) (defalias 'sh 'shell-script-mode)
(provide 'siren-aliases)
(provide 'siren-aliases) ;;; siren-aliases.el ends here

View File

@@ -1,6 +1,10 @@
;; ;;; siren-auto-complete.el --- jimeh's Emacs Siren: auto-complete configuration.
;; auto-complete
;; ;;; Commentary:
;; Basic configuration for auto-complete.
;;; Code:
(siren-require-packages '(auto-complete)) (siren-require-packages '(auto-complete))
@@ -23,10 +27,10 @@
;; Auto-complete when indenting. ;; Auto-complete when indenting.
(defadvice indent-for-tab-command (around ac-before-indent activate) (defadvice indent-for-tab-command (around ac-before-indent activate)
"Call `auto-complete' if text was recently entered" "Call `auto-complete' if text was recently entered."
(if (ac-trigger-command-p last-command) (if (ac-trigger-command-p last-command)
(auto-complete) (auto-complete)
ad-do-it)) ad-do-it))
(provide 'siren-auto-complete) (provide 'siren-auto-complete)
;;; siren-auto-complete.el ends here

View File

@@ -1,6 +1,11 @@
;; ;;; siren-avy.el --- jimeh's Emacs Siren: avy configuration.
;; avy allows us to effectively navigate to visible things
;; ;;; Commentary:
;; Basic configuration for avy. Avy allows us to effectively navigate to visible
;; things.
;;; Code:
(siren-require-packages '(ace-window avy)) (siren-require-packages '(ace-window avy))
@@ -14,5 +19,5 @@
(define-key global-map (kbd "C-c SPC") 'avy-goto-char) (define-key global-map (kbd "C-c SPC") 'avy-goto-char)
(define-key global-map (kbd "M-o") 'ace-window) (define-key global-map (kbd "M-o") 'ace-window)
(provide 'siren-avy)
(provide 'siren-avy) ;;; siren-avy.el ends here

View File

@@ -1,6 +1,10 @@
;; ;;; siren-coffee.el --- jimeh's Emacs Siren: coffee-mode configuration.
;; coffeescript
;; ;;; Commentary:
;; Basic configuration for coffee-mode.
;;; Code:
(require 'siren-programming) (require 'siren-programming)
@@ -32,5 +36,5 @@
(add-hook 'coffee-mode-hook (lambda () (add-hook 'coffee-mode-hook (lambda ()
(run-hooks 'siren-coffee-mode-hook))))) (run-hooks 'siren-coffee-mode-hook)))))
(provide 'siren-coffee) (provide 'siren-coffee)
;;; siren-coffee.el ends here

View File

@@ -1,6 +1,10 @@
;; ;;; siren-company.el --- jimeh's Emacs Siren: company configuration.
;; company
;; ;;; Commentary:
;; Basic configuration for company. Auto completion on steroids.
;;; Code:
(siren-require-packages '(company)) (siren-require-packages '(company))
@@ -39,5 +43,5 @@
(let ((completion-at-point-functions completion-at-point-functions-saved)) (let ((completion-at-point-functions completion-at-point-functions-saved))
(company-complete-common))) (company-complete-common)))
(provide 'siren-company) (provide 'siren-company)
;;; siren-company.el ends here

View File

@@ -1,6 +1,10 @@
;; ;;; siren-css.el --- jimeh's Emacs Siren: css-mode configuration.
;; css
;; ;;; Commentary:
;; Basic configuration for css-mode.
;;; Code:
(require 'siren-programming) (require 'siren-programming)
@@ -23,5 +27,5 @@
(add-hook 'css-mode-hook (lambda () (add-hook 'css-mode-hook (lambda ()
(run-hooks 'siren-css-mode-hook))))) (run-hooks 'siren-css-mode-hook)))))
(provide 'siren-css) (provide 'siren-css)
;;; siren-css.el ends here

View File

@@ -1,6 +1,10 @@
;; ;;; siren-cucumber.el --- jimeh's Emacs Siren: feature-mode configuration.
;; feature
;; ;;; Commentary:
;; Basic configuration for feature-mode.
;;; Code:
(require 'siren-programming) (require 'siren-programming)
@@ -18,5 +22,5 @@
(add-hook 'feature-mode-hook (lambda () (add-hook 'feature-mode-hook (lambda ()
(run-hooks 'siren-feature-mode-hook))) (run-hooks 'siren-feature-mode-hook)))
(provide 'siren-cucumber) (provide 'siren-cucumber)
;;; siren-cucumber.el ends here

View File

@@ -1,6 +1,10 @@
;; ;;; siren-dired.el --- jimeh's Emacs Siren: dired configuration.
;; dired
;; ;;; Commentary:
;; Basic configuration for dired.
;;; Code:
(siren-require-packages '(dired+)) (siren-require-packages '(dired+))
(require 'dired+) (require 'dired+)
@@ -15,5 +19,5 @@
(add-hook 'dired-mode-hook (lambda () (add-hook 'dired-mode-hook (lambda ()
(run-hooks 'siren-dired-mode-hook))) (run-hooks 'siren-dired-mode-hook)))
(provide 'siren-dired) (provide 'siren-dired)
;;; siren-dired.el ends here

View File

@@ -1,6 +1,10 @@
;; ;;; siren-ecb.el --- jimeh's Emacs Siren: ECB configuration.
;; ecb
;; ;;; Commentary:
;; Basic configuration for ECB.
;;; Code:
(siren-require-packages '(ecb)) (siren-require-packages '(ecb))
@@ -28,5 +32,5 @@
(if window-system (ecb-activate)) (if window-system (ecb-activate))
(provide 'siren-ecb) (provide 'siren-ecb)
;;; siren-ecb.el ends here

View File

@@ -1,6 +1,10 @@
;; ;;; siren-elscreen.el --- jimeh's Emacs Siren: elscreen configuration.
;; elscreen
;; ;;; Commentary:
;; Basic configuration for elscreen.
;;; Code:
(siren-require-packages '(elscreen elscreen-buffer-group)) (siren-require-packages '(elscreen elscreen-buffer-group))
@@ -28,9 +32,8 @@
(define-key elscreen-map (kbd ";") 'elscreen-display-screen-name-list) (define-key elscreen-map (kbd ";") 'elscreen-display-screen-name-list)
(define-key elscreen-map (kbd "C-;") 'elscreen-display-screen-name-list) (define-key elscreen-map (kbd "C-;") 'elscreen-display-screen-name-list)
;; Start ElScreen. ;; Start ElScreen.
(elscreen-start) (elscreen-start)
(provide 'siren-elscreen) (provide 'siren-elscreen)
;;; siren-elscreen.el ends here

View File

@@ -1,6 +1,10 @@
;; ;;; siren-emacs-lisp.el --- jimeh's Emacs Siren: emacs-lisp-mode configuration.
;; emacs-lisp
;; ;;; Commentary:
;; Basic configuration for emacs-lisp-mode.
;;; Code:
(siren-require-packages '(rainbow-mode)) (siren-require-packages '(rainbow-mode))
@@ -43,5 +47,5 @@
(eval-after-load "rainbow-mode" (eval-after-load "rainbow-mode"
'(diminish 'rainbow-mode)) '(diminish 'rainbow-mode))
(provide 'siren-emacs-lisp) (provide 'siren-emacs-lisp)
;;; siren-emacs-lisp.el ends here

View File

@@ -1,6 +1,10 @@
;; ;;; siren-escreen.el --- jimeh's Emacs Siren: escreen configuration.
;; escreen
;; ;;; Commentary:
;; Basic configuration for escreen.
;;; Code:
;; Loads from vendor. ;; Loads from vendor.
(require 'escreen) (require 'escreen)
@@ -64,5 +68,5 @@
(add-hook 'escreen-goto-screen-hook (add-hook 'escreen-goto-screen-hook
'escreen-get-active-screen-numbers-with-emphasis) 'escreen-get-active-screen-numbers-with-emphasis)
(provide 'siren-escreen) (provide 'siren-escreen)
;;; siren-escreen.el ends here

View File

@@ -1,6 +1,10 @@
;; ;;; siren-exec-path-from-shell.el --- jimeh's Emacs Siren: exec-path-from-shell configuration.
;; exec-path-from-shell
;; ;;; Commentary:
;; Basic configuration for exec-path-from-shell.
;;; Code:
(siren-require-packages '(exec-path-from-shell)) (siren-require-packages '(exec-path-from-shell))
@@ -9,3 +13,4 @@
(exec-path-from-shell-initialize)) (exec-path-from-shell-initialize))
(provide 'siren-exec-path-from-shell) (provide 'siren-exec-path-from-shell)
;;; siren-exec-path-from-shell.el ends here

View File

@@ -1,6 +1,10 @@
;; ;;; siren-fci.el --- jimeh's Emacs Siren: fill-column-indicator configuration.
;; fci
;; ;;; Commentary:
;; Basic configuration for fill-column-indicator.
;;; Code:
(siren-require-packages '(fill-column-indicator)) (siren-require-packages '(fill-column-indicator))
@@ -8,5 +12,5 @@
(setq fci-rule-width 1 (setq fci-rule-width 1
fci-handle-trucate-lines nil) fci-handle-trucate-lines nil)
(provide 'siren-fci)
(provide 'siren-fci) ;;; siren-fci.el ends here

View File

@@ -1,6 +1,10 @@
;; ;;; siren-flycheck.el --- jimeh's Emacs Siren: flycheck configuration.
;; flycheck
;; ;;; Commentary:
;; Basic configuration for flycheck.
;;; Code:
(siren-require-packages '(flycheck)) (siren-require-packages '(flycheck))
@@ -9,5 +13,5 @@
(setq flycheck-idle-change-delay 1.0) (setq flycheck-idle-change-delay 1.0)
(setq flycheck-indication-mode 'right-fringe) (setq flycheck-indication-mode 'right-fringe)
(provide 'siren-flycheck) (provide 'siren-flycheck)
;;; siren-flycheck.el ends here

View File

@@ -1,6 +1,10 @@
;; ;;; siren-full-ack.el --- jimeh's Emacs Siren: full-ack configuration.
;; full-ack
;; ;;; Commentary:
;; Basic configuration for full-ack.
;;; Code:
(siren-require-packages '(full-ack)) (siren-require-packages '(full-ack))
@@ -36,3 +40,4 @@
(provide 'siren-full-ack) (provide 'siren-full-ack)
;;; siren-full-ack.el ends here

View File

@@ -1,10 +1,14 @@
;; ;;; siren-github.el --- jimeh's Emacs Siren: Github related stuff.
;; github
;; ;;; Commentary:
;; Basic configuration for various Github related packages.
;;; Code:
(siren-require-packages '(github-browse-file)) (siren-require-packages '(github-browse-file))
(require 'github-browse-file) (require 'github-browse-file)
(provide 'siren-github) (provide 'siren-github)
;;; siren-github.el ends here

View File

@@ -1,6 +1,10 @@
;; ;;; siren-global-keybindings.el --- jimeh's Emacs Siren: Global keybindings.
;; global keybindings (customized)
;; ;;; Commentary:
;; Basic global keybindings.
;;; Code:
(require 'siren-helpers) (require 'siren-helpers)
@@ -77,6 +81,5 @@
(global-set-key (kbd "s-<left>") 'beginning-of-line) (global-set-key (kbd "s-<left>") 'beginning-of-line)
(global-set-key (kbd "s-<right>") 'end-of-line)) (global-set-key (kbd "s-<right>") 'end-of-line))
(provide 'siren-global-keybindings) (provide 'siren-global-keybindings)
;;; siren-global-keybindings.el ends here

View File

@@ -1,6 +1,10 @@
;; ;;; siren-go.el --- jimeh's Emacs Siren: go-mode configuration.
;; go
;; ;;; Commentary:
;; Basic configuration for go-mode.
;;; Code:
(require 'siren-programming) (require 'siren-programming)
@@ -63,5 +67,5 @@
(add-hook 'go-mode-hook (lambda () (add-hook 'go-mode-hook (lambda ()
(run-hooks 'siren-go-mode-hook))))) (run-hooks 'siren-go-mode-hook)))))
(provide 'siren-go) (provide 'siren-go)
;;; siren-go.el ends here

View File

@@ -1,6 +1,10 @@
;; ;;; siren-goto-symbol.el --- jimeh's Emacs Siren: goto-symbol.
;; goto-symbol
;; ;;; Commentary:
;; Basic goto-symbol functionality.
;;; Code:
;; Shamelessly ripped from Emacs Prelude. ;; Shamelessly ripped from Emacs Prelude.
@@ -59,5 +63,5 @@
(global-set-key (kbd "C-t") 'siren-goto-symbol) (global-set-key (kbd "C-t") 'siren-goto-symbol)
(global-set-key (kbd "C-c C-t") 'siren-flush-cache-and-goto-symbol) (global-set-key (kbd "C-c C-t") 'siren-flush-cache-and-goto-symbol)
(provide 'siren-goto-symbol) (provide 'siren-goto-symbol)
;;; siren-goto-symbol ends here.

View File

@@ -1,6 +1,10 @@
;; ;;; siren-haml.el --- jimeh's Emacs Siren: haml-mode configuration.
;; haml
;; ;;; Commentary:
;; Basic configuration for haml-mode.
;;; Code:
(siren-require-packages '(haml-mode)) (siren-require-packages '(haml-mode))
@@ -19,5 +23,5 @@
(add-hook 'haml-mode-hook (lambda () (run-hooks 'siren-haml-mode-hook))) (add-hook 'haml-mode-hook (lambda () (run-hooks 'siren-haml-mode-hook)))
(provide 'siren-haml) (provide 'siren-haml)
;;; siren-haml.el ends here

View File

@@ -1,6 +1,10 @@
;; ;;; siren-helm.el --- jimeh's Emacs Siren: helm configuration.
;; helm
;; ;;; Commentary:
;; Basic configuration for helm.
;;; Code:
(siren-require-packages '(helm helm-swoop helm-projectile helm-open-github)) (siren-require-packages '(helm helm-swoop helm-projectile helm-open-github))
@@ -35,5 +39,5 @@
(global-set-key (kbd "C-c o i") 'helm-open-github-from-issues) (global-set-key (kbd "C-c o i") 'helm-open-github-from-issues)
(global-set-key (kbd "C-c o p") 'helm-open-github-from-pull-requests) (global-set-key (kbd "C-c o p") 'helm-open-github-from-pull-requests)
(provide 'siren-helm) (provide 'siren-helm)
;;; siren-helm.el ends here

View File

@@ -1,6 +1,10 @@
;; ;;; siren-highlight-indentation.el --- jimeh's Emacs Siren: highlight-indentation-mode configuration.
;; highlight-indentation
;; ;;; Commentary:
;; Basic configuration for highlight-indentation-mode.
;;; Code:
(siren-require-packages '(highlight-indentation)) (siren-require-packages '(highlight-indentation))
@@ -10,3 +14,4 @@
(provide 'siren-highlight-indentation) (provide 'siren-highlight-indentation)
;;; siren-highlight-indentation.el ends here

View File

@@ -1,6 +1,10 @@
;; ;;; siren-highlight-symbol.el --- jimeh's Emacs Siren: highlight-symbol configuration.
;; highlight-symbol
;; ;;; Commentary:
;; Basic configuration for highlight-symbol.
;;; Code:
(siren-require-packages '(highlight-symbol)) (siren-require-packages '(highlight-symbol))
@@ -14,3 +18,4 @@
(provide 'siren-highlight-symbol) (provide 'siren-highlight-symbol)
;;; siren-highlight-symbol.el ends here

View File

@@ -1,6 +1,10 @@
;; ;;; siren-ido.el --- jimeh's Emacs Siren: ido configuration.
;; ido relateed
;; ;;; Commentary:
;; Basic configuration for ido.
;;; Code:
(siren-require-packages '(ido-ubiquitous ido-vertical-mode smex)) (siren-require-packages '(ido-ubiquitous ido-vertical-mode smex))
@@ -32,5 +36,5 @@
(global-set-key (kbd "M-x") 'smex) (global-set-key (kbd "M-x") 'smex)
(global-set-key (kbd "M-X") 'smex-major-mode-commands) (global-set-key (kbd "M-X") 'smex-major-mode-commands)
(provide 'siren-ido)
(provide 'siren-ido) ;;; siren-ido.el ends here

View File

@@ -1,4 +1,4 @@
;;; siren-js.el --- jimeh's Emacs setup: js-mode configuration. ;;; siren-js.el --- jimeh's Emacs Siren: js-mode configuration.
;;; Commentary: ;;; Commentary:

View File

@@ -1,4 +1,4 @@
;;; siren-json.el --- jimeh's Emacs setup: json-mode configuration. ;;; siren-json.el --- jimeh's Emacs Siren: json-mode configuration.
;;; Commentary: ;;; Commentary:
@@ -9,7 +9,6 @@
(require 'siren-programming) (require 'siren-programming)
(siren-require-packages '(json-mode)) (siren-require-packages '(json-mode))
;; (require 'json-mode)
(defun siren-json-mode-defaults () (defun siren-json-mode-defaults ()
"Default tweaks for `json-mode'." "Default tweaks for `json-mode'."

View File

@@ -1,9 +1,13 @@
;; ;;; siren-linum-relative.el --- jimeh's Emacs Siren: linum-relative configuration.
;; linum-relative
;; ;;; Commentary:
;; Basic configuration for linum-relative.
;;; Code:
(siren-require-packages '(linum-relative)) (siren-require-packages '(linum-relative))
(require 'linum-relative) (require 'linum-relative)
(provide 'siren-linum-relative) (provide 'siren-linum-relative)
;;; siren-linum-relative.el ends here

View File

@@ -1,6 +1,10 @@
;; ;;; siren-linum.el --- jimeh's Emacs Siren: linum configuration.
;; linum
;; ;;; Commentary:
;; Basic configuration for linum.
;;; Code:
;; Customize line numbers - In gui mode the fringe is the spacer between line ;; 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. ;; numbers and code, while in console mode we add an extra space for it.
@@ -12,3 +16,4 @@
(require 'linum+) (require 'linum+)
(provide 'siren-linum) (provide 'siren-linum)
;;; siren-linum.el ends here

View File

@@ -1,6 +1,10 @@
;; ;;; siren-lisp.el --- jimeh's Emacs Siren: lisp-mode configuration.
;; lisp
;; ;;; Commentary:
;; Basic configuration for lisp-mode.
;;; Code:
(require 'siren-programming) (require 'siren-programming)
(siren-require-packages '(rainbow-delimiters)) (siren-require-packages '(rainbow-delimiters))
@@ -30,5 +34,5 @@
(setq siren-interactive-lisp-coding-hook 'siren-interactive-lisp-coding-defaults) (setq siren-interactive-lisp-coding-hook 'siren-interactive-lisp-coding-defaults)
(provide 'siren-lisp) (provide 'siren-lisp)
;;; siren-lisp.el ends here

View File

@@ -1,6 +1,10 @@
;; ;;; siren-lua.el --- jimeh's Emacs Siren: lua-mode configuration.
;; lua
;; ;;; Commentary:
;; Basic configuration for lua-mode.
;;; Code:
(require 'siren-programming) (require 'siren-programming)
@@ -20,5 +24,5 @@
(add-hook 'lua-mode-hook (lambda () (add-hook 'lua-mode-hook (lambda ()
(run-hooks 'siren-lua-mode-hook))) (run-hooks 'siren-lua-mode-hook)))
(provide 'siren-lua) (provide 'siren-lua)
;;; siren-lua.el ends here

View File

@@ -1,6 +1,10 @@
;; ;;; siren-magit.el --- jimeh's Emacs Siren: magit configuration.
;; magit
;; ;;; Commentary:
;; Basic configuration for magit.
;;; Code:
(siren-require-packages '(magit)) (siren-require-packages '(magit))
@@ -43,5 +47,5 @@
(add-hook 'git-commit-mode-hook (lambda () (add-hook 'git-commit-mode-hook (lambda ()
(run-hooks 'siren-git-commit-mode-hook))) (run-hooks 'siren-git-commit-mode-hook)))
(provide 'siren-magit) (provide 'siren-magit)
;;; siren-magit.el ends here

View File

@@ -1,6 +1,10 @@
;; ;;; siren-makefile.el --- jimeh's Emacs Siren: makefile-mode configuration.
;; makefile
;; ;;; Commentary:
;; Basic configuration for makefile-mode.
;;; Code:
(require 'siren-programming) (require 'siren-programming)
@@ -19,5 +23,5 @@
(add-hook 'makefile-mode-hook (lambda () (add-hook 'makefile-mode-hook (lambda ()
(run-hooks 'siren-makefile-mode-hook))) (run-hooks 'siren-makefile-mode-hook)))
(provide 'siren-makefile) (provide 'siren-makefile)
;;; siren-makefile.el ends here

View File

@@ -1,6 +1,10 @@
;; ;;; siren-markdown.el --- jimeh's Emacs Siren: markdown-mode configuration.
;; sass
;; ;;; Commentary:
;; Basic configuration for markdown-mode.
;;; Code:
(siren-require-packages '(markdown-mode)) (siren-require-packages '(markdown-mode))
@@ -28,5 +32,5 @@
(add-hook 'markdown-mode-hook (lambda () (run-hooks 'siren-markdown-mode-hook))) (add-hook 'markdown-mode-hook (lambda () (run-hooks 'siren-markdown-mode-hook)))
(provide 'siren-markdown) (provide 'siren-markdown)
;;; siren-markdown.el ends here

View File

@@ -1,9 +1,11 @@
;; ;;; siren-move-beginning-of-line.el --- jimeh's Emacs Siren: move-beginning-of-line.
;; move-beginning-of-line
;; ;;; Commentary:
;; Tweak behavior of C-a.
;;; Code:
;; Borrowed from:
;; - http://emacsredux.com/blog/2013/05/22/smarter-navigation-to-the-beginning-of-a-line/
(defun siren-move-beginning-of-line (arg) (defun siren-move-beginning-of-line (arg)
"Move point back to indentation of beginning of line. "Move point back to indentation of beginning of line.
@@ -13,7 +15,9 @@ Effectively toggle between the first non-whitespace character and
the beginning of the line. the beginning of the line.
If ARG is not nil or 1, move forward ARG - 1 lines first. If If ARG is not nil or 1, move forward ARG - 1 lines first. If
point reaches the beginning or end of the buffer, stop there." point reaches the beginning or end of the buffer, stop there.
Borrowed from: http://emacsredux.com/blog/2013/05/22/smarter-navigation-to-the-beginning-of-a-line/"
(interactive "^p") (interactive "^p")
(setq arg (or arg 1)) (setq arg (or arg 1))
@@ -30,5 +34,5 @@ point reaches the beginning or end of the buffer, stop there."
;; Use siren-move-beginning-of-line ;; Use siren-move-beginning-of-line
(global-set-key (kbd "C-a") 'siren-move-beginning-of-line) (global-set-key (kbd "C-a") 'siren-move-beginning-of-line)
(provide 'siren-move-beginning-of-line) (provide 'siren-move-beginning-of-line)
;;; siren-move-beginning-of-line.el ends here

View File

@@ -1,6 +1,10 @@
;; ;;; siren-multiple-cursors.el --- jimeh's Emacs Siren: multiple-cursors configuration.
;; multiple-cursors
;; ;;; Commentary:
;; Basic configuration for multiple-cursors.
;;; Code:
(siren-require-packages '(multiple-cursors)) (siren-require-packages '(multiple-cursors))
@@ -9,7 +13,7 @@
(global-set-key (kbd "C-x C-@") 'mc/edit-lines) ;; Terminal (global-set-key (kbd "C-x C-@") 'mc/edit-lines) ;; Terminal
(global-set-key (kbd "C-x C-SPC") 'mc/edit-lines) ;; GUI (global-set-key (kbd "C-x C-SPC") 'mc/edit-lines) ;; GUI
(global-set-key (kbd "M-/") 'mc/mark-next-like-this) (global-set-key (kbd "M-/") 'mc/mark-next-like-this)
(global-set-key (kbd "M-m") 'mc/mark-previous-like-this) (global-set-key (kbd "M-m") 'mc/mark-previous-like-this)
(global-set-key (kbd "C-c M-/") 'mc/mark-all-like-this) (global-set-key (kbd "C-c M-/") 'mc/mark-all-like-this)
@@ -19,5 +23,5 @@
(global-unset-key (kbd "M-<down-mouse-1>")) ;; must unset key first (global-unset-key (kbd "M-<down-mouse-1>")) ;; must unset key first
(global-set-key (kbd "M-<mouse-1>") 'mc/add-cursor-on-click) (global-set-key (kbd "M-<mouse-1>") 'mc/add-cursor-on-click)
(provide 'siren-multiple-cursors)
(provide 'siren-multiple-cursors) ;;; siren-multiple-cursors.el ends here

View File

@@ -1,6 +1,10 @@
;; ;;; siren-neotree.el --- jimeh's Emacs Siren: neotree configuration.
;; neotree
;; ;;; Commentary:
;; Basic configuration for neotree.
;;; Code:
(siren-require-packages '(neotree)) (siren-require-packages '(neotree))
@@ -13,3 +17,4 @@
(setq neo-window-width 54) (setq neo-window-width 54)
(provide 'siren-neotree) (provide 'siren-neotree)
;;; siren-neotree.el ends here

View File

@@ -1,6 +1,10 @@
;; ;;; siren-perspective.el --- jimeh's Emacs Siren: perspective configuration.
;; perspective
;; ;;; Commentary:
;; Basic configuration for perspective.
;;; Code:
(siren-require-packages '(perspective)) (siren-require-packages '(perspective))
@@ -35,5 +39,5 @@
(persp-mode) (persp-mode)
(provide 'siren-perspective) (provide 'siren-perspective)
;;; siren-perspective.el ends here

View File

@@ -1,6 +1,10 @@
;; ;;; siren-phi-search.el --- jimeh's Emacs Siren: phi-search configuration.
;; phi-search
;; ;;; Commentary:
;; Basic configuration for phi-search.
;;; Code:
(siren-require-packages '(phi-search)) (siren-require-packages '(phi-search))
@@ -8,5 +12,5 @@
(global-set-key (kbd "C-s") 'phi-search) (global-set-key (kbd "C-s") 'phi-search)
(global-set-key (kbd "C-r") 'phi-search-backward) (global-set-key (kbd "C-r") 'phi-search-backward)
(provide 'siren-phi-search)
(provide 'siren-phi-search) ;;; siren-phi-search.el ends here

View File

@@ -1,6 +1,10 @@
;; ;;; siren-programming.el --- jimeh's Emacs Siren: defaults for programming modes
;; programming
;; ;;; Commentary:
;; Basic configuration shared across all programming languages.
;;; Code:
(require 'siren-fci) (require 'siren-fci)
(require 'siren-flycheck) (require 'siren-flycheck)
@@ -32,3 +36,4 @@
(provide 'siren-programming) (provide 'siren-programming)
;;; siren-programming.el ends here

View File

@@ -1,6 +1,10 @@
;; ;;; siren-project-explorer.el --- jimeh's Emacs Siren: project-explorer configuration.
;; project-explorer
;; ;;; Commentary:
;; Basic configuration for project-explorer.
;;; Code:
(siren-require-packages '(project-explorer)) (siren-require-packages '(project-explorer))
@@ -26,5 +30,5 @@
(pe/show-buffer buffer))) (pe/show-buffer buffer)))
)) ))
(provide 'siren-project-explorer) (provide 'siren-project-explorer)
;;; siren-project-explorer.el ends here

View File

@@ -1,6 +1,10 @@
;; ;;; siren-projectile.el --- jimeh's Emacs Siren: projectile configuration.
;; projectile
;; ;;; Commentary:
;; Basic configuration for projectile.
;;; Code:
(siren-require-packages '(projectile)) (siren-require-packages '(projectile))
@@ -41,7 +45,6 @@
;; (setq projectile-known-projects-file (expand-file-name ;; (setq projectile-known-projects-file (expand-file-name
;; "projectile-bookmarks.eld" siren-savefile-dir)) ;; "projectile-bookmarks.eld" siren-savefile-dir))
(projectile-global-mode t) (projectile-global-mode t)
;; Keybindings ;; Keybindings
@@ -51,5 +54,5 @@
(global-set-key (kbd "C-x C-v") 'projectile-switch-to-buffer) (global-set-key (kbd "C-x C-v") 'projectile-switch-to-buffer)
(global-set-key (kbd "C-c C-s") 'projectile-switch-project) (global-set-key (kbd "C-c C-s") 'projectile-switch-project)
(provide 'siren-projectile) (provide 'siren-projectile)
;;; siren-projectile.el ends here

View File

@@ -1,6 +1,10 @@
;; ;;; siren-ruby.el --- jimeh's Emacs Siren: ruby-mode configuration.
;; ruby
;; ;;; Commentary:
;; Basic configuration for ruby-mode.
;;; Code:
(require 'siren-programming) (require 'siren-programming)
(require 'siren-company) (require 'siren-company)
@@ -79,5 +83,5 @@
;; (auto-complete) ;; (auto-complete)
;; ad-do-it)) ;; ad-do-it))
(provide 'siren-ruby) (provide 'siren-ruby)
;;; siren-ruby.el ends here

View File

@@ -1,6 +1,10 @@
;; ;;; siren-sass.el --- jimeh's Emacs Siren: sass-mode configuration.
;; sass
;; ;;; Commentary:
;; Basic configuration for sass-mode.
;;; Code:
(require 'siren-css) (require 'siren-css)
(siren-require-packages '(sass-mode)) (siren-require-packages '(sass-mode))
@@ -15,5 +19,5 @@
(add-hook 'sass-mode-hook (lambda () (run-hooks 'siren-sass-mode-hook))) (add-hook 'sass-mode-hook (lambda () (run-hooks 'siren-sass-mode-hook)))
(provide 'siren-sass) (provide 'siren-sass)
;;; siren-sass.el ends here

View File

@@ -1,6 +1,10 @@
;; ;;; siren-scroll-half-screen.el --- jimeh's Emacs Siren: scroll-half-screen.
;; scroll-half-screen
;; ;;; Commentary:
;; Scroll up/down M-v/C-v half a screen instead of a full screen.
;;; Code:
;; Scroll half a screen when using scroll-up and scroll-down functions. ;; Scroll half a screen when using scroll-up and scroll-down functions.
(defadvice scroll-up (around half-window activate) (defadvice scroll-up (around half-window activate)
@@ -13,5 +17,5 @@
(max 1 (/ (1- (window-height (selected-window))) 2))) (max 1 (/ (1- (window-height (selected-window))) 2)))
ad-do-it) ad-do-it)
(provide 'siren-scroll-half-screen)
(provide 'siren-scroll-half-screen) ;;; siren-scroll-half-screen.el ends here

View File

@@ -1,6 +1,10 @@
;; ;;; siren-scss.el --- jimeh's Emacs Siren: scss-mode configuration.
;; scss
;; ;;; Commentary:
;; Basic configuration for scss-mode.
;;; Code:
(require 'siren-css) (require 'siren-css)
(siren-require-packages '(scss-mode)) (siren-require-packages '(scss-mode))
@@ -15,5 +19,5 @@
(add-hook 'scss-mode-hook (lambda () (run-hooks 'siren-scss-mode-hook))) (add-hook 'scss-mode-hook (lambda () (run-hooks 'siren-scss-mode-hook)))
(provide 'siren-scss) (provide 'siren-scss)
;;; siren-scss.el ends here

View File

@@ -1,6 +1,10 @@
;; ;;; siren-sh.el --- jimeh's Emacs Siren: sh-mode configuration.
;; shell
;; ;;; Commentary:
;; Basic configuration for sh-mode.
;;; Code:
(require 'siren-programming) (require 'siren-programming)
@@ -22,5 +26,5 @@
(add-hook 'sh-mode-hook (lambda () (add-hook 'sh-mode-hook (lambda ()
(run-hooks 'siren-sh-mode-hook))) (run-hooks 'siren-sh-mode-hook)))
(provide 'siren-sh) (provide 'siren-sh)
;;; siren-sh.el ends here

View File

@@ -1,6 +1,10 @@
;; ;;; siren-smartparens.el --- jimeh's Emacs Siren: smartparens configuration.
;; smartparens
;; ;;; Commentary:
;; Basic configuration for smartparens.
;;; Code:
(siren-require-packages '(smartparens)) (siren-require-packages '(smartparens))
@@ -22,5 +26,5 @@
;; Aliases ;; Aliases
(defalias 'rw 'sp-rewrap-sexp) (defalias 'rw 'sp-rewrap-sexp)
(provide 'siren-smartparens) (provide 'siren-smartparens)
;;; siren-smartparens.el ends here

View File

@@ -1,6 +1,10 @@
;; ;;; siren-smex.el --- jimeh's Emacs Siren: smex.
;; smex
;; ;;; Commentary:
;; Replace M-x with the more powerful smex.
;;; Code:
(siren-require-packages '(smex)) (siren-require-packages '(smex))
@@ -16,5 +20,5 @@
(global-set-key (kbd "C-c C-m") 'smex) (global-set-key (kbd "C-c C-m") 'smex)
(global-set-key (kbd "C-c C-c M-x") 'execute-extended-command) (global-set-key (kbd "C-c C-c M-x") 'execute-extended-command)
(provide 'siren-smex)
(provide 'siren-smex) ;;; siren-smex.el ends here

View File

@@ -1,15 +1,17 @@
;; ;;; siren-text-manipulation.el --- jimeh's Emacs Siren: text-manipulation.
;; text-manipulation
;; ;;; Commentary:
;; Various text manipulation functions and keybindings. Some of them shamelessly
;; ripped from textmate.el: https://github.com/defunkt/textmate.el
;;; Code:
(siren-require-packages '(move-text expand-region)) (siren-require-packages '(move-text expand-region))
(require 'move-text) (require 'move-text)
(require 'expand-region) (require 'expand-region)
;; Various things shamelessly ripped from textmate.el:
;; - https://github.com/defunkt/textmate.el
(defmacro allow-line-as-region-for-function (orig-function) (defmacro allow-line-as-region-for-function (orig-function)
`(defun ,(intern (concat (symbol-name orig-function) "-or-line")) `(defun ,(intern (concat (symbol-name orig-function) "-or-line"))
() ()
@@ -43,7 +45,6 @@ A place is considered `tab-width' character columns."
(interactive) (interactive)
(siren-shift-right (* -1 (or arg 1)))) (siren-shift-right (* -1 (or arg 1))))
;; Keybindings ;; Keybindings
(define-key global-map (kbd "M-p") 'move-text-up) (define-key global-map (kbd "M-p") 'move-text-up)
(define-key global-map (kbd "M-n") 'move-text-down) (define-key global-map (kbd "M-n") 'move-text-down)
@@ -57,5 +58,5 @@ A place is considered `tab-width' character columns."
(global-set-key (kbd "M-.") 'er/expand-region) (global-set-key (kbd "M-.") 'er/expand-region)
(global-set-key (kbd "M-,") 'er/contract-region) (global-set-key (kbd "M-,") 'er/contract-region)
(provide 'siren-text-manipulation) (provide 'siren-text-manipulation)
;;; siren-text-manipulation.el ends here

View File

@@ -1,6 +1,10 @@
;; ;;; siren-thrift.el --- jimeh's Emacs Siren: thrift-mode configuration.
;; coffeescript
;; ;;; Commentary:
;; Basic configuration for thrift-mode.
;;; Code:
(require 'siren-programming) (require 'siren-programming)
@@ -19,5 +23,5 @@
(add-hook 'thrift-mode-hook (lambda () (add-hook 'thrift-mode-hook (lambda ()
(run-hooks 'siren-thrift-mode-hook))) (run-hooks 'siren-thrift-mode-hook)))
(provide 'siren-thrift) (provide 'siren-thrift)
;;; siren-thrift.el ends here

View File

@@ -1,6 +1,10 @@
;; ;;; siren-volatile-highlights.el --- jimeh's Emacs Siren: volatile-highlights-mode configuration.
;; volatile highlights
;; ;;; Commentary:
;; Basic configuration for volatile-highlights-mode.
;;; Code:
(siren-require-packages '(volatile-highlights)) (siren-require-packages '(volatile-highlights))
@@ -8,5 +12,5 @@
(volatile-highlights-mode t) (volatile-highlights-mode t)
(diminish 'volatile-highlights-mode) (diminish 'volatile-highlights-mode)
(provide 'siren-volatile-highlights) (provide 'siren-volatile-highlights)
;;; siren-volatile-highlights.el ends here

View File

@@ -1,6 +1,10 @@
;; ;;; siren-window-management.el --- jimeh's Emacs Siren: window-management.
;; window-management
;; ;;; Commentary:
;; Basic window management stuff.
;;; Code:
(defun ignore-error-wrapper (fn) (defun ignore-error-wrapper (fn)
"Funtion return new function that ignore errors. "Funtion return new function that ignore errors.
@@ -10,7 +14,6 @@
(interactive) (interactive)
(ignore-errors (ignore-errors
(funcall fn))))) (funcall fn)))))
(siren-require-packages '(buffer-move)) (siren-require-packages '(buffer-move))
@@ -29,5 +32,5 @@
(global-set-key (kbd "M-J") 'buf-move-left) (global-set-key (kbd "M-J") 'buf-move-left)
(global-set-key (kbd "M-L") 'buf-move-right) (global-set-key (kbd "M-L") 'buf-move-right)
(provide 'siren-window-management)
(provide 'siren-window-management) ;;; siren-window-management.el ends here

View File

@@ -1,6 +1,10 @@
;; ;;; siren-workgroups2.el --- jimeh's Emacs Siren: workgroups2 configuration.
;; workgroups2
;; ;;; Commentary:
;; Basic configuration for workgroups2.
;;; Code:
(siren-require-packages '(workgroups2)) (siren-require-packages '(workgroups2))
@@ -9,3 +13,4 @@
(provide 'siren-workgroups2) (provide 'siren-workgroups2)
;;; siren-workgroups2.el ends here

View File

@@ -1,6 +1,10 @@
;; ;;; siren-yasnippet.el --- jimeh's Emacs Siren: yasnippet configuration.
;; yasnippet
;; ;;; Commentary:
;; Basic configuration for yasnippet.
;;; Code:
(siren-require-packages '(yasnippet)) (siren-require-packages '(yasnippet))
@@ -9,5 +13,5 @@
(yas/global-mode t) (yas/global-mode t)
(provide 'siren-yasnippet) (provide 'siren-yasnippet)
;;; siren-yasnippet.el ends here

View File

@@ -1,6 +1,10 @@
;; ;;; siren-modules.el --- jimeh's Emacs Siren: Module loading.
;; siren modules setup
;; ;;; Commentary:
;; Load the modules!
;;; Code:
;; Modules ;; Modules
(require 'siren-aliases) (require 'siren-aliases)
@@ -42,7 +46,6 @@
;; (require 'siren-perspective) ;; (require 'siren-perspective)
;; (require 'siren-workgroups2) ;; (require 'siren-workgroups2)
;; Languages ;; Languages
(require 'siren-coffee) (require 'siren-coffee)
(require 'siren-css) (require 'siren-css)
@@ -60,5 +63,5 @@
(require 'siren-sh) (require 'siren-sh)
(require 'siren-thrift) (require 'siren-thrift)
(provide 'siren-modules) (provide 'siren-modules)
;;; siren-modules.el ends here

View File

@@ -1,10 +1,14 @@
;; ;;; siren-theme.el --- jimeh's Emacs Siren: Theme loading.
;; siren theme setup
;; ;;; Commentary:
;; Load the theme!
;;; Code:
(if window-system (if window-system
(require 'siren-theme-twilight-anti-bright) (require 'siren-theme-twilight-anti-bright)
(require 'siren-theme-tomorrow-night-paradise)) (require 'siren-theme-tomorrow-night-paradise))
(provide 'siren-theme) (provide 'siren-theme)
;;; siren-theme.el ends here

View File

@@ -1,8 +1,12 @@
;; ;;; siren-tomorrow-night-paradise-theme.el --- jimeh's Emacs Siren: tomorrow-night-paradise-theme.
;; tomorrow-night-paradise-theme
;; ;;; Commentary:
;; Setup for tomorrow-night-paradise-theme.
;;; Code:
(require 'tomorrow-night-paradise-theme) (require 'tomorrow-night-paradise-theme)
(provide 'siren-theme-tomorrow-night-paradise)
(provide 'siren-theme-tomorrow-night-paradise) ;;; siren-tomorrow-night-paradise-theme.el ends here

View File

@@ -1,10 +1,14 @@
;; ;;; siren-twilight-anti-bright-theme.el --- jimeh's Emacs Siren: twilight-anti-bright-theme.
;; twilight-anti-bright-theme
;; ;;; Commentary:
;; Setup for twilight-anti-bright-theme.
;;; Code:
(siren-require-packages '(twilight-anti-bright-theme twilight-bright-theme)) (siren-require-packages '(twilight-anti-bright-theme twilight-bright-theme))
(require 'twilight-anti-bright-theme) (require 'twilight-anti-bright-theme)
(provide 'siren-theme-twilight-anti-bright)
(provide 'siren-theme-twilight-anti-bright) ;;; siren-twilight-anti-bright-theme.el ends here