Skip to content

sagemath/auto-complete-sage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

136 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

auto-complete-sage

melpa badge melpa stable badge Build Status

Overview

auto-complete-sage provides auto-complete sources for sage-shell-mode.

ac-sage

Installation

You can install auto-complete-sage from MELPA by package.el (M-x package-install auto-complete-sage).

For the setting of auto-complete, see the manual of auto-complete-mode.

auto-complete-sage provides specific sources for sage-shell-mode. To add these sources to ac-sources, put the following lines to "~/.emacs.d/init.el":

(add-hook 'sage-shell:sage-mode-hook 'ac-sage-setup)
(add-hook 'sage-shell-mode-hook 'ac-sage-setup)

Tab Completion

auto-complete-sage replaces the default completion function of sage-shell-mode (completion-at-point) by auto-complete. If you want to use completion-at-point for the Tab completion, put the following line to "~/.emacs.d/init.el":

(eval-after-load "auto-complete-sage"
  '(setq sage-shell:completion-function 'completion-at-point))

Customization

  • ac-sage-show-quick-help (default value: nil). To show a quick help, set this variable to non-nil.

    (setq ac-sage-show-quick-help t)
    

    By default, quick help for an instance of sage.misc.lazy_import.LazyImport is not shown. To show quick help for all instances, put the following line to "~/.emacs.d/init.el".

    (setq ac-sage-quick-help-ignore-classes '(""))
    
  • ac-sage-complete-on-dot (default value: nil). This variable is similar to jedi:complete-on-dot in jedi. When non-nil, auto-complete starts when a dot is inserted.

For more customization, M-x customize-group RET auto-complete-sage.

About

An auto-complete source for sage-shell-mode

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

 
 
 

Contributors