Giter VIP home page Giter VIP logo

osx-dictionary.el's Introduction

OSX Dictionary.app interface for Emacs


MELPA MELPA

Introduction

osx-dictionary is inspired by dictionary.vim. osx-dictionary provides functions which invoke Dictionary.app from Mac OS X.

Installation

Install from MELPA with:

M-x package-install RET osx-dictionary RET

Usage

  • osx-dictionary-search-word-at-point Search word at point and display result with buffer
  • osx-dictionary-search-input Search input word and display result with buffer

Sample configuration

;; Support Chinese word
;; (setq osx-dictionary-use-chinese-text-segmentation t)

;; Key bindings
(global-set-key (kbd "C-c d") 'osx-dictionary-search-word-at-point)
;; (global-set-key (kbd "C-c i") 'osx-dictionary-search-input)

;; Work with popwin-el (https://github.com/m2ym/popwin-el)
;; (push "*osx-dictionary*" popwin:special-display-config)

Here is a screenshot of a sample usage: Imgur

Note on Chinese word support

GNU Emacs itself has no idea what a Chinese word is, If you want Emacs to get the most likely Chinese word under the cursor, you have to set osx-dictionary-use-chinese-text-segmentation to t and install a Chinese word segmentation tool, please refer to chinese-word-at-point#prerequisite for more info.

News

  • 2016/11 The option osx-dictionary-dictionary-choice was removed AFTER v0.2.2 for macOS Sierra support.

osx-dictionary.el's People

Contributors

xuchunyang avatar agentcoops avatar jiegec avatar purcell avatar dsdshcym avatar fuzzbomb avatar hw202207 avatar emptylambda avatar lust4life avatar nixmaniack avatar rimbaudcode avatar gfgkmn avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.