Skip to content

cgroza/Emacs-apt

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
apt
 
 
 
 
 
 

Emacs-apt

Description

Emacs-apt is a project providing apt-mode in order to facilitate tasks using apt-get and apt-cache.

Emacs-apt allows you to simply execute a key sequence over a package name and the respective apt-get or apt-cache command will be invoked, displaying and highlighting the output.

For example, you could do apt-search package. A buffer displaying the results of the search will be created. You will be able to position your point over an element and run an operation such as apt-get download on it with a single key sequence.

Actions that require root privileges start a shell.

Installation

Vanilla Emacs

Emacs users only need to load the files in the apt-mode directory by adding the following to .emacs:

  ;; add apt-mode directory in load-path (push apt-mode-directory load-path) ;;
  load apt-mode (require 'apt-mode) #+END_SRC
*** Spacemacs
The =apt= directory contains the spacemacs configuration layer. It can be added
in the =private= section of =emacs.d=. Note that the files in =apt-mode= only
need to be present in the load-path. They do not need to be loaded in
=.spacemacs=.
** Keybindings
The following default keybindings are provided in APT mode:
| Key | Function            |
| q   | quit-window         |
| s   | apt-mode-search     |
| S   | apt-mode-source     |
| p   | apt-mode-pkgnames   |
| P   | apt-mode-policy     |
| h   | apt-mode-showpkg    |
| t   | apt-mode-dotty      |
| x   | apt-mode-xvcg       |
| c   | apt-mode-change-log |
| d   | apt-mode-depends    |
| D   | apt-mode-download   |
| r   | apt-mode-rdepends   |
| m   | apt-mode-madison    |

** Commands
Users should define their own keybindings for unbound functions. Note that
apt-mode-* functions execute their actions on a symbol at point, while apt-*
functions ask the user for a string in the minibuffer.

*** apt-mode-* commands:
+ apt-mode-change-log
+ apt-mode-depends
+ apt-mode-dotty
+ apt-mode-download
+ apt-mode-install
+ apt-mode-madison
+ apt-mode-pkgnames
+ apt-mode-policy
+ apt-mode-purge
+ apt-mode-rdepends
+ apt-mode-remove
+ apt-mode-search
+ apt-mode-showpkg
+ apt-mode-source
+ apt-mode-xvcg
*** apt-* commands
+ apt-autoremove
+ apt-changelog 
+ apt-depends 
+ apt-dotty 
+ apt-download 
+ apt-dump 
+ apt-dumpavail 
+ apt-install
+ apt-madison
+ apt-pkgnames 
+ apt-policy 
+ apt-purge
+ apt-rdepends 
+ apt-remove
+ apt-search 
+ apt-showpkg 
+ apt-showsrc 
+ apt-source 
+ apt-stats 
+ apt-update
+ apt-upgrade
+ apt-xvcg 

About

Apt packager interface for emacs.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published