Skip to content

Commit 6007fc9

Browse files
committed
emacs: add the package define-word
1 parent 3a296e2 commit 6007fc9

2 files changed

Lines changed: 44 additions & 6 deletions

File tree

emacs/init.el

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,7 @@
742742
:ensure t
743743
:defer 1
744744
:config
745-
(set-face-attribute 'aw-leading-char-face nil :foreground "deep sky blue" :weight 'bold :height 3.0)
745+
(set-face-attribute 'aw-leading-char-face nil :foreground "deep sky blue" :weight 'bold :height 2.0)
746746
(set-face-attribute 'aw-mode-line-face nil :inherit 'mode-line-buffer-id :foreground "lawn green")
747747
(setq aw-keys '(?a ?s ?d ?f ?j ?k ?l)
748748
aw-dispatch-always t
@@ -943,6 +943,14 @@
943943
:ensure t
944944
:mode "\\.csv\\'")
945945

946+
;; define-word
947+
948+
;; [[https://github.com/abo-abo/define-word][define-word]] is a GNU Emacs package that lets you see the definition of a word or
949+
;; a phrase at point, without having to switch to a browser.
950+
951+
(use-package define-word
952+
:ensure t)
953+
946954
;; diff-hl
947955

948956
;; [[https://github.com/dgutov/diff-hl][diff-hl]] highlights uncommitted changes on the left side of the window, allows
@@ -1973,12 +1981,14 @@
19731981
[_w_] eww [_g_] google [_f_] elfeed [_i_] imgur
19741982
[_u_] url [_m_] google maps [_t_] twitter
19751983
^ ^ [_s_] surfraw [_x_] stack overflow
1984+
^ ^ [_d_] wordnik
19761985
--------------------------------------------------------------------------------
19771986
"
19781987
("f" elfeed)
19791988
("g" google-this)
19801989
("i" imgur-post)
19811990
("m" google-maps)
1991+
("d" define-word-at-point)
19821992
("s" helm-surfraw)
19831993
("t" twit)
19841994
("w" eww)
@@ -3522,7 +3532,9 @@
35223532
(interactive)
35233533
(swiper)
35243534
(add-to-list 'regexp-search-ring (ivy--regex ivy-text)))
3525-
(ivy-mode t))
3535+
(ivy-mode t)
3536+
(use-package counsel
3537+
:ensure t))
35263538

35273539
;; twittering-mode
35283540

@@ -3685,12 +3697,18 @@
36853697
;; [[https://github.com/capitaomorte/yasnippet][YASnippet]] is a template system for Emacs. It allows you to type an
36863698
;; abbreviation and automatically expand it into function templates.
36873699

3700+
;; [[https://github.com/emacs-helm/helm-c-yasnippet][helm-c-yasnippet]] is a helm source to display available yasnippets for the
3701+
;; current mode.
3702+
36883703
(use-package yasnippet
36893704
:ensure t
36903705
:defer 5
36913706
:diminish yas-minor-mode
36923707
:config
3693-
(yas-global-mode))
3708+
(yas-global-mode)
3709+
(use-package helm-c-yasnippet
3710+
:ensure t
3711+
:ensure helm))
36943712

36953713
;; Disable it in ansi-term
36963714

emacs/readme.org

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -862,7 +862,7 @@ nice features.
862862
:ensure t
863863
:defer 1
864864
:config
865-
(set-face-attribute 'aw-leading-char-face nil :foreground "deep sky blue" :weight 'bold :height 3.0)
865+
(set-face-attribute 'aw-leading-char-face nil :foreground "deep sky blue" :weight 'bold :height 2.0)
866866
(set-face-attribute 'aw-mode-line-face nil :inherit 'mode-line-buffer-id :foreground "lawn green")
867867
(setq aw-keys '(?a ?s ?d ?f ?j ?k ?l)
868868
aw-dispatch-always t
@@ -1078,6 +1078,16 @@ of other purposes.
10781078
:mode "\\.csv\\'")
10791079
#+END_SRC
10801080

1081+
** define-word
1082+
1083+
[[https://github.com/abo-abo/define-word][define-word]] is a GNU Emacs package that lets you see the definition of a word or
1084+
a phrase at point, without having to switch to a browser.
1085+
1086+
#+BEGIN_SRC emacs-lisp
1087+
(use-package define-word
1088+
:ensure t)
1089+
#+END_SRC
1090+
10811091
** diff-hl
10821092

10831093
[[https://github.com/dgutov/diff-hl][diff-hl]] highlights uncommitted changes on the left side of the window, allows
@@ -2235,12 +2245,14 @@ that way.
22352245
[_w_] eww [_g_] google [_f_] elfeed [_i_] imgur
22362246
[_u_] url [_m_] google maps [_t_] twitter
22372247
^ ^ [_s_] surfraw [_x_] stack overflow
2248+
^ ^ [_d_] wordnik
22382249
--------------------------------------------------------------------------------
22392250
"
22402251
("f" elfeed)
22412252
("g" google-this)
22422253
("i" imgur-post)
22432254
("m" google-maps)
2255+
("d" define-word-at-point)
22442256
("s" helm-surfraw)
22452257
("t" twit)
22462258
("w" eww)
@@ -4560,7 +4572,9 @@ regex.
45604572
(interactive)
45614573
(swiper)
45624574
(add-to-list 'regexp-search-ring (ivy--regex ivy-text)))
4563-
(ivy-mode t))
4575+
(ivy-mode t)
4576+
(use-package counsel
4577+
:ensure t))
45644578
#+END_SRC
45654579

45664580
** twittering-mode
@@ -4731,13 +4745,19 @@ redo any change, while preserving the entire history of past states.
47314745
[[https://github.com/capitaomorte/yasnippet][YASnippet]] is a template system for Emacs. It allows you to type an
47324746
abbreviation and automatically expand it into function templates.
47334747

4748+
[[https://github.com/emacs-helm/helm-c-yasnippet][helm-c-yasnippet]] is a helm source to display available yasnippets for the
4749+
current mode.
4750+
47344751
#+BEGIN_SRC emacs-lisp
47354752
(use-package yasnippet
47364753
:ensure t
47374754
:defer 5
47384755
:diminish yas-minor-mode
47394756
:config
4740-
(yas-global-mode))
4757+
(yas-global-mode)
4758+
(use-package helm-c-yasnippet
4759+
:ensure t
4760+
:ensure helm))
47414761
#+END_SRC
47424762

47434763
*** Disable it in ansi-term

0 commit comments

Comments
 (0)