Skip to content

Instantly share code, notes, and snippets.

@lcaballero
Created September 3, 2017 00:47
Show Gist options
  • Save lcaballero/4c81d2b5d7963b9af8c61b5186942e86 to your computer and use it in GitHub Desktop.
Save lcaballero/4c81d2b5d7963b9af8c61b5186942e86 to your computer and use it in GitHub Desktop.
Some setup snippets for init.el
;; This is typical setup stuff with bootstrap loading of use-package
(require 'package)
(setq package-enable-at-startup nil)
(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages/"))
(add-to-list 'package-archives '("marmalade" . "http://marmalade-repo.org/packages/"))
(add-to-list 'package-archives '("gnu" . "http://elpa.gnu.org/packages/"))
(package-initialize)
(unless (package-installed-p 'use-package)
(package-refresh-contents)
(package-install 'use-package))
(eval-when-compile
(require 'use-package))
(require 'diminish)
(require 'bind-key)
; re-binding prefix to C-c g instead of C-c / (which is used by org mode).
; As well as fixing the RET key binding that was not working.
(use-package google-this
:init
;(global-set-key (kbd "C-c g") 'google-this-mode-submap)
(setq google-this-keybind (kbd "C-c g"))
(bind-key "C-c C-g" 'google-this-mode)
:bind
(("C-c g RET" . google-this-search)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment