Personal emacs config
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
2.2 KiB

  1. ;;; docker.el --- Emacs interface to Docker -*- lexical-binding: t -*-
  2. ;; Author: Philippe Vaucher <philippe.vaucher@gmail.com>
  3. ;; URL: https://github.com/Silex/docker.el
  4. ;; Keywords: filename, convenience
  5. ;; Version: 1.3.0
  6. ;; Package-Requires: ((emacs "24.5") (dash "2.14.1") (docker-tramp "0.1") (magit-popup "2.12.4") (s "1.12.0") (tablist "0.70") (json-mode "1.7.0"))
  7. ;; This file is NOT part of GNU Emacs.
  8. ;; This program is free software; you can redistribute it and/or modify
  9. ;; it under the terms of the GNU General Public License as published by
  10. ;; the Free Software Foundation; either version 3, or (at your option)
  11. ;; any later version.
  12. ;;
  13. ;; This program is distributed in the hope that it will be useful,
  14. ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. ;; GNU General Public License for more details.
  17. ;;
  18. ;; You should have received a copy of the GNU General Public License
  19. ;; along with GNU Emacs; see the file COPYING. If not, write to the
  20. ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  21. ;; Boston, MA 02110-1301, USA.
  22. ;;; Commentary:
  23. ;; # Emacs interface to Docker!
  24. ;;
  25. ;; This package allows you to manipulate docker images, containers & more from Emacs.
  26. ;;; Code:
  27. (require 'magit-popup)
  28. (require 'docker-group)
  29. (require 'docker-utils)
  30. (require 'docker-container)
  31. (require 'docker-image)
  32. (require 'docker-machine)
  33. (require 'docker-network)
  34. (require 'docker-volume)
  35. ;;;###autoload (autoload 'docker "docker" nil t)
  36. (magit-define-popup docker
  37. "Popup for docker."
  38. 'docker
  39. :man-page "docker"
  40. :options '((?H "Host" "--host "))
  41. :actions `("Docker"
  42. (?c "Containers" ,(docker-utils-set-then-call 'docker-arguments 'docker-containers))
  43. (?i "Images" ,(docker-utils-set-then-call 'docker-arguments 'docker-images))
  44. (?n "Networks" ,(docker-utils-set-then-call 'docker-arguments 'docker-networks))
  45. (?v "Volumes" ,(docker-utils-set-then-call 'docker-arguments 'docker-volumes))
  46. "Other"
  47. (?C "Compose" docker-compose)
  48. (?M "Machines" docker-machines)))
  49. (provide 'docker)
  50. ;;; docker.el ends here