This commit is contained in:
John Doty 2016-12-18 18:53:26 -08:00
parent e963d456b6
commit e9aa8f6812
2 changed files with 16 additions and 17 deletions

View file

@ -228,17 +228,18 @@
;; ================================================================= ;; =================================================================
;; FUN WITH KEY BINDINGS! YAAAAYYY!!! ;; FUN WITH KEY BINDINGS! YAAAAYYY!!!
;; ================================================================= ;; =================================================================
(global-set-key (read-kbd-macro "M-g") 'goto-line) (global-set-key (read-kbd-macro "<end>") 'end-of-buffer)
(global-set-key (read-kbd-macro "C-q") 'copy-region-as-kill) (global-set-key (read-kbd-macro "<home>") 'beginning-of-buffer)
(global-set-key (read-kbd-macro "C-w") 'kill-region)
(global-set-key (read-kbd-macro "<home>") 'beginning-of-buffer) (global-set-key (read-kbd-macro "C-/") 'comment-or-uncomment-region)
(global-set-key (read-kbd-macro "<end>") 'end-of-buffer) (global-set-key (read-kbd-macro "C-c TAB") 'indent-buffer)
(global-set-key (read-kbd-macro "C-q") 'copy-region-as-kill)
(global-set-key (read-kbd-macro "C-w") 'kill-region)
(global-set-key (read-kbd-macro "C-x f") 'font-lock-fontify-buffer)
(global-set-key (read-kbd-macro "M-1") 'new-frame) (global-set-key (read-kbd-macro "M-1") 'new-frame)
(global-set-key (read-kbd-macro "M-3") 'delete-frame) (global-set-key (read-kbd-macro "M-3") 'delete-frame)
(global-set-key (read-kbd-macro "M-g") 'goto-line)
(global-set-key (read-kbd-macro "C-x f") 'font-lock-fontify-buffer)
;; In addition, make sure various things are working properly with xterm-keys ;; In addition, make sure various things are working properly with xterm-keys
;; on under tmux. (This has been the most reliable way to get putty to send ;; on under tmux. (This has been the most reliable way to get putty to send
@ -264,7 +265,6 @@
(require 'filladapt) (require 'filladapt)
(setq-default filladapt-mode t) (setq-default filladapt-mode t)
;; We're going to stop doing ido and start doing helm, maybe?
(require 'ido) (require 'ido)
;; Cleanup all the whitespaces. ;; Cleanup all the whitespaces.
@ -278,6 +278,7 @@
;; Text mode configuration. ;; Text mode configuration.
;; ================================================================= ;; =================================================================
(defun my-text-mode-hook () (defun my-text-mode-hook ()
"Doty's hook for text mode."
(setq fill-column 70) (setq fill-column 70)
(turn-on-auto-fill) (turn-on-auto-fill)
(flyspell-mode)) (flyspell-mode))
@ -448,8 +449,6 @@
(indent-region (point-min) (point-max)) (indent-region (point-min) (point-max))
(whitespace-cleanup)) (whitespace-cleanup))
(global-set-key (read-kbd-macro "C-c TAB") 'indent-buffer)
;; IDL ;; IDL
(c-add-style "ms-idl" (c-add-style "ms-idl"
'("gnu" '("gnu"
@ -837,10 +836,8 @@
(add-hook 'comint-output-filter-functions 'comint-truncate-buffer) (add-hook 'comint-output-filter-functions 'comint-truncate-buffer)
(add-hook 'shell-mode-hook 'buffer-disable-undo) (add-hook 'shell-mode-hook 'buffer-disable-undo)
;; ;; ag
;; Comment all the time (global-set-key (kbd "M-p") 'ag-project-regexp)
;;
(global-set-key (kbd "C-/") 'comment-or-uncomment-region)
(provide 'core) (provide 'core)
;;; core.el ends here ;;; core.el ends here

View file

@ -3,6 +3,8 @@
;; If you edit it by hand, you could mess it up, so be careful. ;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance. ;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right. ;; If there is more than one, they won't work right.
'(ag-arguments (quote ("--line-number" "--smart-case" "--column" "--")))
'(ag-executable "rg")
'(blink-matching-paren-dont-ignore-comments t) '(blink-matching-paren-dont-ignore-comments t)
'(c-basic-offset 2) '(c-basic-offset 2)
'(c-echo-syntactic-information-p t) '(c-echo-syntactic-information-p t)
@ -37,7 +39,7 @@
'(org-odd-levels-only t) '(org-odd-levels-only t)
'(package-selected-packages '(package-selected-packages
(quote (quote
(dockerfile-mode js2-mode ## web-mode ahg zencoding-mode tss switch-window python-mode paredit monky magit lua-mode go-mode go-autocomplete flycheck exec-path-from-shell csharp-mode color-theme-solarized color-theme-monokai auto-complete-nxml))) (ag use-package flycheck dockerfile-mode js2-mode ## web-mode ahg zencoding-mode tss switch-window python-mode paredit monky magit lua-mode go-mode go-autocomplete exec-path-from-shell csharp-mode color-theme-solarized color-theme-monokai auto-complete-nxml)))
'(rmail-mail-new-frame t) '(rmail-mail-new-frame t)
'(safe-local-variable-values '(safe-local-variable-values
(quote (quote