1
0
Fork 0

Add helpful package

This commit is contained in:
Tom Willemse 2019-04-09 01:09:37 -07:00
parent 51f5e1934d
commit 77e25502a1
2 changed files with 12 additions and 4 deletions

View file

@ -4,8 +4,8 @@
;; Author: Tom Willemse <tom@ryuslash.org> ;; Author: Tom Willemse <tom@ryuslash.org>
;; Keywords: local ;; Keywords: local
;; Version: 20190330120416 ;; Version: 20190409010902
;; Package-Requires: (oni-data-dir expand-region multiple-cursors embrace) ;; Package-Requires: (oni-data-dir expand-region multiple-cursors embrace helpful)
;; This program is free software; you can redistribute it and/or modify ;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by ;; it under the terms of the GNU General Public License as published by
@ -95,6 +95,11 @@
(global-set-key (kbd "C-x f") 'ffap) (global-set-key (kbd "C-x f") 'ffap)
(global-set-key (kbd "C-x C-b") 'ibuffer) (global-set-key (kbd "C-x C-b") 'ibuffer)
(global-set-key [remap describe-function] 'helpful-callable)
(global-set-key [remap describe-key] 'helpful-key)
(global-set-key [remap describe-variable] 'helpful-variable)
(global-set-key (kbd "C-c C-d") 'helpful-at-point)
(electric-indent-mode -1) (electric-indent-mode -1)
(when (eql system-type 'windows-nt) (when (eql system-type 'windows-nt)

View file

@ -4,8 +4,8 @@
;; Author: Tom Willemse <tom@ryuslash.org> ;; Author: Tom Willemse <tom@ryuslash.org>
;; Keywords: local ;; Keywords: local
;; Version: 20190228214524 ;; Version: 20190409004833
;; Package-Requires: (counsel diminish) ;; Package-Requires: (counsel diminish helpful)
;; This program is free software; you can redistribute it and/or modify ;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by ;; it under the terms of the GNU General Public License as published by
@ -35,6 +35,9 @@
(diminish 'counsel-mode) (diminish 'counsel-mode)
(setq counsel-describe-function-function 'helpful-callable)
(setq counsel-describe-variable-function 'helpful-variable)
;;;###autoload(with-eval-after-load 'counsel (require 'oni-counsel)) ;;;###autoload(with-eval-after-load 'counsel (require 'oni-counsel))
;;;###autoload ;;;###autoload
(add-hook 'emacs-startup-hook 'counsel-mode) (add-hook 'emacs-startup-hook 'counsel-mode)