fixed font and docker mode
parent
95a1f9f7af
commit
38d80277cf
|
@ -1,262 +0,0 @@
|
|||
;;; -*- coding: utf-8 -*-
|
||||
|
||||
;; ----- ido-last-directory-list -----
|
||||
(
|
||||
("/home/bvn13/.config/" . "sway/")
|
||||
("/home/bvn13/develop/mila-clinic/appointment/" . "docs/")
|
||||
("/home/bvn13/develop/mila-clinic/" . "appointment/")
|
||||
("/home/bvn13/develop/_examples/JavaLessons/" . "springboot2-request-logger/")
|
||||
("/home/bvn13/develop/_examples/" . "JavaLessons/")
|
||||
("/home/" . "bvn13/")
|
||||
("/home/bvn13/develop/SpringBlog/src/main/java/com/raysmond/blog/" . "utils/")
|
||||
("/home/bvn13/develop/SpringBlog/src/main/java/com/raysmond/" . "blog/")
|
||||
("/home/bvn13/develop/SpringBlog/src/main/java/com/" . "raysmond/")
|
||||
("/home/bvn13/develop/SpringBlog/src/main/java/" . "com/")
|
||||
("/home/bvn13/develop/SpringBlog/src/main/" . "java/")
|
||||
("/home/bvn13/cloud/yadisk/projects/amo-1c/" . "start-2019-08-05/")
|
||||
("/home/bvn13/cloud/yadisk/projects/" . "amo-1c/")
|
||||
("/home/bvn13/cloud/yadisk/" . "projects/")
|
||||
("/home/bvn13/cloud/" . "yadisk/")
|
||||
("/home/bvn13/develop/_config/" . "sync/")
|
||||
("/home/bvn13/Documents/notes/projects/" . "weborg/")
|
||||
("/home/bvn13/Documents/notes/java/" . "encryption/")
|
||||
("/home/bvn13/Documents/notes/" . "postgresql/")
|
||||
("/home/bvn13/develop/_contrib/fingerprint/Validity90/" . "prototype/")
|
||||
("/home/bvn13/develop/_contrib/fingerprint/" . "Validity90/")
|
||||
("/home/bvn13/develop/_contrib/" . "fingerprint/")
|
||||
("/home/bvn13/Documents/" . "notes/")
|
||||
("/home/bvn13/.local/share/" . "applications/")
|
||||
("/home/bvn13/.local/" . "share/")
|
||||
("/home/bvn13/develop/kb-layout-caps-led/" . "daemons/")
|
||||
("/home/bvn13/" . "develop/")
|
||||
("/home/bvn13/develop/PriceProcessorHG/src/main/java/ru/bvn13/priceprocessor/" . "utils/")
|
||||
("/home/bvn13/develop/PriceProcessorHG/src/main/java/ru/bvn13/" . "priceprocessor/")
|
||||
("/home/bvn13/develop/PriceProcessorHG/src/main/java/ru/" . "bvn13/")
|
||||
("/home/bvn13/develop/PriceProcessorHG/src/main/java/" . "ru/")
|
||||
("/home/bvn13/develop/PriceProcessorHG/src/main/" . "java/")
|
||||
("/home/bvn13/develop/PriceProcessorHG/src/" . "main/")
|
||||
("/home/bvn13/develop/PriceProcessorHG/" . "src/")
|
||||
("/home/bvn13/develop/" . "mila-clinic/")
|
||||
)
|
||||
|
||||
;; ----- ido-work-directory-list -----
|
||||
(
|
||||
"/home/bvn13/"
|
||||
"/home/bvn13/.config/sway/"
|
||||
"/home/bvn13/develop/mila-clinic/appointment/docs/"
|
||||
"/home/bvn13/soft/idea-IU/bin/"
|
||||
"/home/bvn13/develop/_examples/JavaLessons/springboot2-request-logger/"
|
||||
"/home/bvn13/Documents/notes/network/"
|
||||
"/home/bvn13/Documents/notes/postgresql/"
|
||||
"/home/bvn13/develop/SpringBlog/src/main/java/com/raysmond/blog/services/"
|
||||
"/home/bvn13/develop/SpringBlog/src/main/java/com/raysmond/blog/models/"
|
||||
"/home/bvn13/soft/idea-IU-191.7479.19/bin/"
|
||||
"/home/bvn13/temp/"
|
||||
"/home/bvn13/Documents/notes/github/"
|
||||
"/home/bvn13/Documents/notes/letsencrypt/"
|
||||
"/home/bvn13/cloud/yadisk/projects/amo-1c/start-2019-08-05/"
|
||||
"/home/bvn13/develop/_config/sync/"
|
||||
"/home/bvn13/Documents/notes/api/"
|
||||
"/home/bvn13/Documents/notes/projects/weborg/"
|
||||
"/home/bvn13/Documents/notes/emacs/"
|
||||
"/home/bvn13/Documents/"
|
||||
"/home/bvn13/.emacs.d/"
|
||||
"/home/bvn13/Documents/notes/java/encryption/"
|
||||
"/home/bvn13/Documents/notes/java/"
|
||||
"/home/bvn13/develop/_contrib/fingerprint/Validity90/prototype/"
|
||||
"/home/bvn13/develop/_contrib/fingerprint/"
|
||||
"/home/bvn13/Documents/DIY/"
|
||||
"/home/bvn13/develop/ParkerSquare/"
|
||||
"/home/bvn13/develop/trollobot/"
|
||||
"/home/bvn13/.steam/steam/steamapps/common/Left 4 Dead 2/left4dead2/cfg/"
|
||||
"/home/bvn13/develop/Shooter2D/"
|
||||
"/home/bvn13/.local/share/applications/"
|
||||
"/home/bvn13/develop/kb-layout-caps-led/daemons/"
|
||||
"/home/bvn13/develop/kb-layout-caps-led/scripts/"
|
||||
"/home/bvn13/develop/kb-layout-caps-led/"
|
||||
"/home/bvn13/develop/kb-layout-caps-led/draft/"
|
||||
"/home/bvn13/games/minetest/games/mineclone-2/"
|
||||
"/home/bvn13/develop/PriceProcessorHG/src/main/java/ru/bvn13/priceprocessor/utils/"
|
||||
)
|
||||
|
||||
;; ----- ido-work-file-list -----
|
||||
(
|
||||
".zshrc"
|
||||
"config"
|
||||
"appointments.org"
|
||||
"idea.vmoptions"
|
||||
"idea.vmoptions.cracked"
|
||||
"README.md"
|
||||
"ipv6.org"
|
||||
"pg-database-init.org"
|
||||
"UserService.java"
|
||||
"User.java"
|
||||
)
|
||||
|
||||
;; ----- ido-dir-file-cache -----
|
||||
(
|
||||
("/home/bvn13/" (24083 51594 803572 19000) "pgadmin4/" ".zshrc" ".dbus/" "temp/" ".groovy/" "Library/" ".dotnet/" "Documents/" ".steam/" "_note/" ".markdownNavigator/" ".selected_editor" ".jackdrc" ".var/" ".audacity-data/" "accessories/" ".pgadmin3" "games/" ".yarnrc" ".gnutls/" "Music/" "develop/" ".gnome/" ".python_history" ".esd_auth" ".IntelliJIdea2019.2/" "Dropbox/" "powertop.html" "../" "openvpn/" "cloud/" ".pgadmin_histoqueries" ".bash_logout" ".dropbox-dist/" ".steampid" "hs_err_pid31227.log" ".ICEauthority" ".httpie/" "pgadmin.log" ".dia/" ".gnome2/" ".babel.json" ".icons/" ".weechat/" "pgadmin4.sh" ".wget-hsts" ".persepolis/" ".eteks/" ".ssr/" ".sbt/" "qphotorec.log" ".pgpass" ".native-image/" ".cert/" ".node-gyp/" ".zcompdump" "compile/" ".idea-build/" ".ssh/" ".cups/" ".config/" ".gitconfig" ".gdxsetup" ".3T/" "./" ".npm/" ".esmtp_queue/" ".xonotic/" "testdisk.log" ".teeworlds/" ".darkplaces/" ".java/" ".bashrc" ".bash_profile~" ".jmonkeyplatform/" ".pki/" ".bashrc~" "Templates/" ".mozilla/" ".install4j" ".soapuios/" "Recordings/" ".cache/" ".bash_profile" ".dosbox/" ".gnupg/" ".electron-gyp/" ".histfile" "test/" "job/" ".hgrc" ".IntelliJIdea2019.3/" ".ViberPC/" "hs_err_pid27414.log" "Downloads/" "install/" ".steampath" "testdisk.log~" "Desktop/" ".oracle_jre_usage/" "Pictures/" ".gdxtexturepackergui/" "daemons/" ".gnome2_private/" ".zshrc~" ".zsh/" ".scala_history" ".dropbox/" ".swt/" ".ivy2/" ".putty/" ".jmonkeyplatform-installer/" ".gradle/" ".hedgewars/" "soft/" ".android/" "Videos/" ".local/" "hs_err_pid30718.log" ".yo-rc-global.json" "pgadmin4.sh~" ".v8flags.6.8.275.32-node.45.94bb3d765d14aed793e4821978ce3470.json" ".bash_history" ".thumbnails/" ".emacs.d/" "coverage-error.log" ".xsel.log" ".m2/" ".shutter/" ".PlayOnLinux/" "Public/" ".wine/" "Diagram1.dia.autosave")
|
||||
|
||||
("/home/bvn13/.config/" (24083 47529 685312 449000) "smtube/" "nautilus/" "vivaldi/" "pulse/" "persepolis_download_manager/" "green-recorder/" "sqlitebrowser/" "configstore/" "discord/" "QtProject.conf" "filezilla/" "generator-jhipster-nodejs/" "rofi/" "mypaint/" "omf/" "dconf/" "../" "gconf/" "freerdp/" "i3/" "gnome-session/" "chromium/" "terminator/" "fontconfig/" "libvirt/" "mc/" "mpv/" "mimeapps.list" "ardour5/" "libreoffice/" "yelp/" "fragments/" "smplayer/" "lutris/" "user-dirs.dirs" "gedit/" "insight-nodejs/" "rclone/" "goa-1.0/" "gnome-initial-setup-done" "gtk-3.0/" "dleyna-server-service.conf" "ExpanDrive/" "./" "opera/" "user-dirs.locale" "google-chrome/" "cef_user_data/" "Dharkael/" "corebird/" "enchant/" "autostart/" "gnome-initial-setup-done-old" "Google Play Music Desktop Player/" "wireshark/" "transmission-remote-gtk/" "hexchat/" "inkscape/" "scummvm/" "diffuse/" "dleyna-renderer-service.conf" "htop/" "fish/" "pulse-old/" "GIMP/" "menus/" "epiphany/" "transmission/" "systemd/" "gnome-control-center/" "sublime-text-3/" "gtk-4.0/" "Trolltech.conf" "eog/" "ibus/" "eiskaltdc++/" "yandex-disk/" "gtk-2.0/" "abrt/" "sway/" "gnome-boxes/" "remmina/" "vlc/" "unity3d/" "keepassxc/" "easytag/" "gnote/" "copyq/" "evolution/" "totem/")
|
||||
|
||||
("/home/bvn13/.config/fish/" (24061 11901 444025 842000) "fish_variables~" "fish_variables" "../" "functions/" "conf.d/" "config.fish" "./" "config.fish~")
|
||||
|
||||
("/home/bvn13/.config/fish/functions/" (23997 25373 556205 312000) "variables.fish" "../" "fish_prompt.fish" "idea.fidh~" "./" "xclip.fish" "idea.fish" "idea.fish~" "mc.fish" "mc.fish~")
|
||||
|
||||
("/home/bvn13/.config/sway/" (23988 22373 157700 0) "config" "../" "config~" "./")
|
||||
|
||||
("/home/bvn13/develop/" (23984 41829 703011 287000) "test-gradle/" "ircbot4s/" "PriceProcessorHG/" "imdb-spider/" "ParkerSquare/" "../" "_contrib/" "necro/" "_scripts/" "mila-clinic.tar.gz" "spring-beans/" "ADaStor/" "sync-diff/" "instabot/" "EncryptedPreferences/" "kb-layout-caps-led/" "_config/" "JProxy/" "_school/" "Shooter2D/" "./" "JIrcBot/" "test/" "_entry_exams/" "trollobot/" "SpringBlog/" "instagram4j/" "obrazfodo/" "mila-clinic/" "instagram4scala/" "jmonad/" "_examples/" "springinputstream/" "_thirdparty/")
|
||||
|
||||
("/home/bvn13/develop/mila-clinic/" (23987 26409 798852 918000) "build.gradle.bup" "gradlew" "accessories/" "gradlew.bat" "../" "database-diagram/" "mc-common/" "HELP.md" "gradle/" "mc-persistence/" "milaclinic.ipr" ".idea/" "mc-appointments/" ".git/" "dataSources/" ".gitignore" "./" "drafts/" "milaclinic.iws" "settings.gradle" ".gradle/" "build.gradle" ".ideaDataSources/" "mila-clinic.iml" "docs/")
|
||||
|
||||
("/home/bvn13/develop/mila-clinic/docs/" (23988 18390 901940 386000) "appointments.org" "photo_2019-09-13_23-23-27.jpg" "../" "./")
|
||||
|
||||
("/home/bvn13/develop/mila-clinic/appointment/docs/" (23963 41299 96467 364000) "appointments.org" "photo_2019-09-13_23-23-27.jpg" "../" "./")
|
||||
|
||||
("/home/bvn13/develop/mila-clinic/appointment/" (23979 1375 647978 972000) "gradlew" "accessories/" "src/" "gradlew.bat" "../" "database-diagram/" "HELP.md" "gradle/" "appointment.ipr" "dataSources/" "logs/" ".gitignore" "./" "appointment.iws" "drafts/" "appointment.iml" "settings.gradle" "appointment.main.iml" "appointment.test.iml" ".gradle/" "build.gradle" "build/" ".ideaDataSources/" "docs/")
|
||||
|
||||
("/home/bvn13/Documents/notes/java/" (23942 24910 896720 859000) "../" "spring/" "./" "encryption/" "apache-camel/")
|
||||
|
||||
("/home/bvn13/.emacs.d/" (23963 36116 785046 185000) "anaconda-mode/" "../" "session.10e01fe296430d745156614399423879100000019820101" "url/" "auto-save-list/" "elpa/" "config-files/" "./" "ido.last~" "init.el" "ido.last")
|
||||
|
||||
("/home/bvn13/Documents/" (23943 15539 333822 543000) "books/" "../" "moex/" "./" "DIY/" "job/" "notes/" "installation/" "ViberDownloads/")
|
||||
|
||||
("/home/bvn13/Documents/notes/network/" (23942 24874 654498 633000) "ipv6.org~" "../" "ipv6.org" "./")
|
||||
|
||||
("/home/bvn13/develop/_examples/JavaLessons/springboot2-request-logger/" (23954 28965 777596 940000) "gradlew" "springboot2-request-logger.ipr" "src/" "gradlew.bat" "../" "HELP.md" "gradle/" "springboot2-request-logger.iml" ".gitignore" "springboot2-request-logger.test.iml" "./" "springboot2-request-logger.iws" "img/" "settings.gradle" "README.md" ".gradle/" "build.gradle" "build/" "springboot2-request-logger.main.iml")
|
||||
|
||||
("/home/bvn13/soft/idea-IU/bin/" (23954 30376 762593 625000) "fsnotifier" "inspect.sh" "idea.sh" "log.xml" "idea.vmoptions" "libdbm64.so" "idea.properties" "fsnotifier64" "idea.vmoptions.cracked" "idea.svg" "../" "printenv.py" "idea.vmoptions.orig" "idea64.vmoptions.cracked" "idea.vmoptions~" "idea64.vmoptions" "./" "idea64.vmoptions.orig" "fsnotifier-arm" "appletviewer.policy" "format.sh" "idea64.vmoptions~" "idea.png" "restart.py")
|
||||
|
||||
("/home/bvn13/develop/_examples/JavaLessons/" (23954 26820 479908 515000) "../" "LICENSE" "recursion-print/" "springboot2-request-logger/" ".git/" "spring-custom-scheduler/" ".gitignore" "./" "encryption/" "springboot2-junit5-skiptest/" "README.md" "time-duration/")
|
||||
|
||||
("/home/bvn13/develop/_examples/" (23869 60518 325609 744000) "../" "./" "JavaLessons/")
|
||||
|
||||
("/home/bvn13/.local/share/applications/" (23896 63661 645328 204000) "gog_com-Duke_Nukem_3D_Atomic_Edition_3.desktop" "chrome-blpcfgokakmgnkcojhhkbfbldkacnbeo-Default.desktop" "gog_com-Duke_Nukem_3D_Atomic_Edition_2.desktop" "../" "mimeinfo.cache" "chrome-aohghmighlieiainnegkcijnfilokake-Default.desktop" "mimeapps.list" "discord.desktop" "gog_com-Duke_Nukem_3D_Atomic_Edition_5.desktop" "userapp-Firefox-R33IZZ.desktop~" "gog_com-Duke_Nukem_3D_Atomic_Edition_1.desktop" "gdx-texturepacker.desktop" "chrome-apdfllckaahabafndbhieahigkjlhalf-Default.desktop" "./" "gog_com-Duke_Nukem_3D_Atomic_Edition_4.desktop" "userapp-Firefox-R33IZZ.desktop" "jetbrains-idea.desktop" "SoapUI-5.5.0-0.desktop" "org.baedert.corebird.desktop" "jetbrains-idea.desktop~" "gdx-texturepacker.desktop~" "org.baedert.corebird.desktop~" "Studio 3T Linux-0.desktop")
|
||||
|
||||
("/home/bvn13/cloud/yadisk/projects/amo-1c/start-2019-08-05/" (23896 13686 627869 330000) "../" "Интеграция списков AmoCRM в 1С.org" "./" "Интеграция списков AmoCRM в 1С.odt" "Интеграция списков AmoCRM в 1С.org~")
|
||||
|
||||
("/home/bvn13/temp/" (23905 32176 202814 526000) "Ставрополь, Ростов.zip" "boot.log" "bad-table.org~" "../" "1.png" "./" "prices/" "Второй файл.txt" "duck-search-test.html" "test/" "TarsosDSP-nightly.jar" "bad-table.org" "log.log" "Файл с русскими буквами в назввании.zip")
|
||||
|
||||
("/home/bvn13/Documents/notes/postgresql/" (23910 56079 302085 561000) "../" "./" "pg-backup-restore.org" "pg-backup-restore.org~" "pg-database-init.org" "pg-database-init.org~")
|
||||
|
||||
("/home/bvn13/Documents/notes/" (23897 1736 440032 283000) "github/" "publications/" "architecture/" "java/" "../" "LICENSE" "windows/" ".git/" "links/" "projects/" "itc/" ".gitignore" "./" "job/" "postgresql/" "adblock/" "emacs/" "interview/" "api/" "letsencrypt/")
|
||||
|
||||
("/home/" (23753 53272 247134 85000) "../" "./" "test/" "bvn13/")
|
||||
|
||||
("/home/bvn13/develop/SpringBlog/" (23910 55552 708952 792000) "SpringBlog.iws" "gradlew" "src/" "SpringBlog.iml" "gradlew.bat" "../" "LICENSE" "gradle/" ".bowerrc" ".git/" "releases/" "SpringBlog.test.iml" "SpringBlog.ipr" ".gitignore" "docker-compose.yml" "./" "SpringBlog.main.iml" "settings.gradle" "bower.json" "SpringBlog-2.9.3" "README.md" ".gradle/" "build.gradle" "build/")
|
||||
|
||||
("/home/bvn13/develop/SpringBlog/src/" (23883 11649 508452 109000) "../" "main/" "./")
|
||||
|
||||
("/home/bvn13/develop/SpringBlog/src/main/java/com/raysmond/blog/utils/" (23883 11649 524452 207000) "../" "CommonHelper.java" "DTOUtil.java" "./" "PaginatorUtil.java")
|
||||
|
||||
("/home/bvn13/develop/SpringBlog/src/main/java/com/raysmond/blog/services/" (23886 48299 279171 156000) "CacheSettingService.java" "SeoRobotAgentService.java" "../" "TelegramBotSettings.java" "TagService.java" "SettingService.java" "AppSetting.java" "UserService.java" "StatisticsService.java" "AdsConfig.java" "./" "LikeService.java" "VisitService.java" "FileStorageService.java" "PostService.java" "SeoService.java" "RequestProcessorService.java")
|
||||
|
||||
("/home/bvn13/develop/SpringBlog/src/main/java/com/raysmond/blog/models/" (23886 46981 561394 96000) "Post.java" "dto/" "../" "Setting.java" "Visit.java" "User.java" "Like.java" "./" "Tag.java" "SeoPostData.java" "BaseModel.java" "support/" "StoredFile.java" "SeoRobotAgent.java")
|
||||
|
||||
("/home/bvn13/develop/SpringBlog/src/main/java/com/raysmond/blog/" (23883 11649 524452 207000) "utils/" "Constants.java" "models/" "../" "Application.java" "SecurityConfig.java" "repositories/" "error/" "./" "support/" "notificators/" "controllers/" "forms/" "JpaConfig.java" "WebConfig.java" "services/" "admin/" "seo/")
|
||||
|
||||
("/home/bvn13/develop/SpringBlog/src/main/java/com/raysmond/" (23883 11649 508452 109000) "../" "blog/" "./")
|
||||
|
||||
("/home/bvn13/develop/SpringBlog/src/main/java/com/" (23883 11649 508452 109000) "../" "./" "raysmond/")
|
||||
|
||||
("/home/bvn13/develop/SpringBlog/src/main/java/" (23883 11649 508452 109000) "../" "com/" "./")
|
||||
|
||||
("/home/bvn13/develop/SpringBlog/src/main/" (23883 11649 525452 213000) "java/" "../" "./" "resources/")
|
||||
|
||||
("/home/bvn13/develop/SpringBlog/src/main/resources/" (23908 13081 56728 587000) "../" "application-production.yml" "queries/" "./" "templates/" "static/" "application-mysql.yml" "application.yml" "i18n/" "logback.xml" "resources/")
|
||||
|
||||
("/home/bvn13/soft/idea-IU-191.7479.19/bin/" (23896 63276 168019 275000) "fsnotifier" "inspect.sh" "idea.sh" "log.xml" "idea.vmoptions" "libdbm64.so" "idea.properties" "fsnotifier64" "idea.vmoptions.cracked" "idea.svg" "../" "printenv.py" "idea64.vmoptions.cracked" "idea.vmoptions~" "idea64.vmoptions" "./" "fsnotifier-arm" "appletviewer.policy" "format.sh" "idea64.vmoptions~" "idea.png" "restart.py")
|
||||
|
||||
("/home/bvn13/Documents/notes/letsencrypt/" (23886 44215 415977 712000) "../" "manual.org~" "./" "manual.org")
|
||||
|
||||
("/home/bvn13/Documents/notes/github/" (23886 48916 324820 5000) "../" "синхронизация-форка.org~" "./" "синхронизация-форка.org")
|
||||
|
||||
("/home/bvn13/develop/trollobot/" (23883 9286 509204 996000) "node_modules/" "../" "package-lock.json" "./" "gaybot.js~" "gaybot.js")
|
||||
|
||||
("/home/bvn13/develop/_config/sync/" (23880 24751 117156 246000) "sync.py" "../" "sync-cloud.timer" "#sync.py#" "sync-cloud.sh" "./" "cloud-local" "sync-cloud.service" "local-cloud")
|
||||
|
||||
("/home/bvn13/cloud/yadisk/projects/amo-1c/" (23880 28544 835512 78000) "../" "start-2019-08-05/" "./")
|
||||
|
||||
("/home/bvn13/cloud/yadisk/projects/" (23880 28523 869386 140000) "../" "./" "amo-1c/" "test1.7z" "ФОДО Образ/")
|
||||
|
||||
("/home/bvn13/cloud/yadisk/" (23880 28383 388542 370000) "documents/" "books/" "for-kids/" "../" ".sync/" "keys/" "projects/" "./" "sql/")
|
||||
|
||||
("/home/bvn13/cloud/" (23878 32248 532211 862000) "../" "onedrive/" "./" "yadisk/")
|
||||
|
||||
("/home/bvn13/Documents/notes/api/" (23858 53607 261938 532000) "../" "instagram.org~" "./" "instagram.org")
|
||||
|
||||
("/home/bvn13/develop/_config/" (23877 38445 842416 920000) "ssh-agent/" "../" "sync/" "./" "my-emacs-config/")
|
||||
|
||||
("/home/bvn13/Documents/notes/projects/weborg/" (23858 49290 324872 965000) "../" "plan.org~" "./" "plan.org")
|
||||
|
||||
("/home/bvn13/Documents/notes/projects/" (23856 46436 125233 775000) "../" "weborg/" "./")
|
||||
|
||||
("/home/bvn13/Documents/notes/emacs/" (23855 34826 317297 310000) "шифрование-в-emacs.org" "../" "./" "insert-date-formatted.org~" "insert-date-formatted.org")
|
||||
|
||||
("/home/bvn13/Documents/notes/java/encryption/" (23855 31322 388954 920000) "../" "./" "gpg-encrypt-decrypt.org" "gpg-encrypt-decrypt.org~")
|
||||
|
||||
("/home/bvn13/develop/PriceProcessorHG/src/main/java/ru/bvn13/priceprocessor/utils/" (23807 46902 32596 440000) "StackTrace.java" "../" "ExcelReader.java" "DateTimeUtil.java" "./" "zipper/")
|
||||
|
||||
("/home/bvn13/develop/Shooter2D/" (23777 37267 145006 723000) "core/" "gradlew" "android/" "links.md~" "local.properties" "gradlew.bat" "ios/" "../" "gradle.properties" "scripts/" "gradle/" "links.md" "Shooter2D.ipr" ".idea/" ".git/" "graphics/" ".gitignore" "./" "desktop/" "html/" "drafts/" "settings.gradle" "assets/" "README.md" ".gradle/" "build.gradle" "Shooter2D.iws" "Shooter2D.iml")
|
||||
|
||||
("/home/bvn13/.steam/steam/steamapps/common/Left 4 Dead 2/left4dead2/cfg/" (23793 34321 911473 42000) "video.txt.bup" "addonconfig.cfg" "joy_preset_4.cfg" "config.cfg" "gpu_mem_level_1_pc.ekv" "gpu_mem_level_2_pc.ekv" "user_default.scr" "listenserver360.cfg" "config_default.cfg" "joy_preset_3.cfg" "../" "moddefaults_mac.txt" "gpu_level_1_pc.ekv" "gpu_level_360.ekv" "cpu_level_2_pc.ekv" "config.360.cfg" "playtest.360.cfg" "video.txt.fixed" "perf.cfg" "mem_level_0_pc.ekv" "splitscreen_on.360.cfg" "splitscreen_off.cfg" "gpu_level_2_pc.ekv" "screenshots_undo.cfg" "cpu_level_360.ekv" "mem_level_1_pc.ekv" "valve.360.rc" "test_start.cfg" "splitscreen_on.cfg" "cpu_level_360_ss.ekv" "test_end.cfg" "cpu_level_1_pc.ekv" "video.txt~" "moddefaults.txt" "modsettings.cfg" "config.global.360.cfg" "gpu_mem_level_0_pc.ekv" "skill1.cfg" "./" "splitscreen_off.360.cfg" "joy_preset_1.cfg" "mem_level_360.ekv" "settings_default.scr" "screenshots.cfg" "joy_preset_2.cfg" "autoexec.360.cfg" "valve.rc" "cpu_level_2_pc_ss.ekv" "cpu_level_0_pc.ekv" "gpu_mem_level_360.ekv" "video.txt" "cpu_level_1_pc_ss.ekv" "mem_level_2_pc.ekv" "360controller.cfg" "listenserver.cfg" "lowend.cfg" "cpu_level_0_pc_ss.ekv" "undo360controller.cfg" "gpu_level_3_pc.ekv" "videodefaults.txt" "gpu_level_0_pc.ekv")
|
||||
|
||||
("/home/bvn13/develop/ParkerSquare/" (23844 60508 163807 390000) "gradlew" "src/" "gradlew.bat" "../" "HELP.md" "gradle/" "ParkerSquare.ipr" ".git/" "dataSources/" "com.bvn13.math.parkersquare.main.iml" ".gitignore" "./" "com.bvn13.math.parkersquare.iml" "com.bvn13.math.parkersquare.test.iml" "ParkerSquare.iws" "settings.gradle" ".gradle/" "build.gradle" "build/" ".ideaDataSources/" "out/")
|
||||
|
||||
("/home/bvn13/develop/_contrib/fingerprint/Validity90/prototype/" (23854 9654 964106 39000) "../" "Makefile" "main.c" "logs/" ".gitignore" "./" "test/" "constants.h" "README.md" "validity90/")
|
||||
|
||||
("/home/bvn13/develop/_contrib/fingerprint/" (23854 15588 927850 459000) "fedora30.inst" "../" "Validity90/" "./" "fedora30.inst~")
|
||||
|
||||
("/home/bvn13/develop/_contrib/fingerprint/Validity90/" (23854 9382 773448 540000) "spec.md" "log15alt" ".gitmodules" "log11" "../" "dbg/" ".git/" "COPYING" "log14" "init6/" "dissector.lua" "log10analysis" "log12" ".gitignore" "libfprint/" "./" "old/" "log10" "prototype/" "dumps/" "README.md" "log11analysis" "lockbox/")
|
||||
|
||||
("/home/bvn13/develop/_contrib/" (23854 9375 10401 186000) "../" "IntelliJ-jME-Plugin/" "fingerprint/" "./" "instagram4j/")
|
||||
|
||||
("/home/bvn13/Documents/DIY/" (23841 61579 113260 823000) "Точилка для ножей.org" "../" "./")
|
||||
|
||||
("/home/bvn13/develop/kb-layout-caps-led/draft/" (23756 53207 649154 964000) "../" "./" "get-main-layout.sh" "get-current-layout.sh" "turn-on.sh")
|
||||
|
||||
("/home/bvn13/develop/kb-layout-caps-led/" (23758 60421 844126 413000) "../" "LICENSE" "scripts/" ".git/" "draft/" ".gitignore" "./" "daemons/" "README.md")
|
||||
|
||||
("/home/bvn13/develop/kb-layout-caps-led/scripts/" (23758 59615 576274 41000) "../" "./" "kb-layout-signal-watcher.sh" "gnome-kb-layout-watcher.sh")
|
||||
|
||||
("/home/bvn13/develop/kb-layout-caps-led/daemons/" (23756 53201 998129 768000) "../" "gnome-kb-layout-watcher.service" "kb-layout-signal-watcher.service" "./")
|
||||
|
||||
("/home/bvn13/.local/share/" (23760 42564 104060 993000) "telepathy/" "gsettings-data-convert-old" "nautilus/" "polkit-1/" "xorg-old/" "JetBrains/" "gsettings-data-convert" "recently-used.xbel-old" "gnome-shell/" "kotlin/" "gvfs-metadata/" "../" "desktop-directories/" "labyrinth/" "vulkan/" "flatpak/" "app-info/" "mc/" "recently-used.xbel" "TelegramDesktop/" "gnome-settings-daemon/" "applications/" "man/" "xorg/" "TpLogger/" "./" "keyrings/" "folks-old/" "Steam/" "icc/" "scummvm/" "diffuse/" "webkitgtk/" "gegl-0.4/" "sounds/" "icons/" "mime/" "tracker/" "meld/" "fonts/" "webkitgtk-old/" "folks/" "recently-used.xbel.34Q4XZ" "remmina/" "rhythmbox/" "vlc/" "Trash/" "copyq/" "evolution/")
|
||||
|
||||
("/home/bvn13/.local/" (23674 13995 295701 180000) "share/" "lib/" "../" "./" "bin/")
|
||||
|
||||
("/home/bvn13/games/minetest/games/mineclone-2/" (23712 29763 1921 244000) "settingtypes.txt" "../" "GROUPS.md" "API.md" "LICENSE.txt" "settingtypes.txt~" "description.txt" "minetest.conf" "tools/" "MISSING_ENGINE_FEATURES.md" "./" "menu/" "mods/" "screenshot.png" "game.conf" "CONTRIBUTING.md" "README.md" "minetest.conf~")
|
||||
|
||||
("/home/bvn13/develop/PriceProcessorHG/src/main/java/ru/bvn13/priceprocessor/" (23703 57524 832995 473000) "utils/" "gui/" "events/" "database/" "../" "MainDialogController.java" "settings/" "errors/" "./" "test.java" "views/" "systray/" "licensing/" "MainApp.java" "entities/" "uploads/" "workers/" "TerminationChecker.java")
|
||||
|
||||
("/home/bvn13/develop/PriceProcessorHG/src/main/java/ru/bvn13/" (23685 20271 556334 754000) "priceprocessor/" "../" "./")
|
||||
|
||||
("/home/bvn13/develop/PriceProcessorHG/src/main/java/ru/" (23685 20271 556334 754000) "../" "./" "bvn13/")
|
||||
|
||||
("/home/bvn13/develop/PriceProcessorHG/src/main/java/" (23685 20271 556334 754000) "../" "com/" "ru/" "./" "META-INF/")
|
||||
|
||||
("/home/bvn13/develop/PriceProcessorHG/src/main/" (23685 20271 595334 945000) "java/" "../" "./" "resources/")
|
||||
|
||||
("/home/bvn13/develop/PriceProcessorHG/src/" (23685 20271 549334 720000) "../" "main/" "./")
|
||||
|
||||
("/home/bvn13/develop/PriceProcessorHG/" (23703 58278 536759 689000) "PriceProcessor.iml" "settings.xml" "priceprocessor.properties" "pom.xml" "lib/" "src/" "../" ".hg/" "db/" "target/" "build.bat" "jooq-config.xml" "dataSources/" "PriceProcessor.ipr.bup" "wsdl-process.bat" "7z.exe" "notes.txt" "./" ".hgignore" "priceprocessor.xml" "PriceProcessor.iws" "site_connection.txt" "module_priceprocessor.xml" ".ideaDataSources/" "PriceProcessor.ipr")
|
||||
|
||||
("/home/bvn13/develop/JIrcBot/" (23695 64831 402605 648000) "pom.xml" "src/" "jircbot.iml" "../" "LICENSE" "target/" ".idea/" ".git/" "jircbot.service" ".gitignore" "./" "config.json" "README.md" "docs/")
|
||||
|
||||
("/home/bvn13/develop/JIrcBot/src/" (23682 46295 282389 775000) "../" "main/" "./")
|
||||
|
||||
("/home/bvn13/develop/JIrcBot/src/main/" (23682 46295 297389 837000) "java/" "../" "./" "resources/")
|
||||
|
||||
("/home/bvn13/develop/JIrcBot/src/main/java/" (23682 46295 282389 775000) "../" "ru/" "./")
|
||||
|
||||
("/home/bvn13/develop/JIrcBot/src/main/java/ru/" (23682 46295 282389 775000) "../" "./" "bvn13/")
|
||||
|
||||
("/home/bvn13/develop/JIrcBot/src/main/java/ru/bvn13/" (23682 46295 282389 775000) "../" "jircbot/" "./")
|
||||
|
||||
("/home/bvn13/develop/JIrcBot/src/main/java/ru/bvn13/jircbot/" (23692 4113 712627 916000) "config/" "model/" "database/" "bot/" "../" "utilities/" "./" "documentation/" "MainApp.java" "web/" "listeners/" "services/")
|
||||
|
||||
("/home/bvn13/develop/JIrcBot/src/main/java/ru/bvn13/jircbot/utilities/" (23682 46295 297389 837000) "DateTimeUtility.java" "../" "DTOUtil.java" "ViewHelper.java" "./")
|
||||
)
|
||||
|
||||
;; ----- ido-unc-hosts-cache -----
|
||||
t
|
|
@ -0,0 +1 @@
|
|||
(require 'docker-compose-mode)
|
|
@ -0,0 +1,30 @@
|
|||
;;; docker-compose-mode-autoloads.el --- automatically extracted autoloads
|
||||
;;
|
||||
;;; Code:
|
||||
|
||||
(add-to-list 'load-path (directory-file-name
|
||||
(or (file-name-directory #$) (car load-path))))
|
||||
|
||||
|
||||
;;;### (autoloads nil "docker-compose-mode" "docker-compose-mode.el"
|
||||
;;;;;; (0 0 0 0))
|
||||
;;; Generated autoloads from docker-compose-mode.el
|
||||
|
||||
(autoload 'docker-compose-mode "docker-compose-mode" "\
|
||||
Major mode to edit docker-compose files.
|
||||
|
||||
\(fn)" t nil)
|
||||
|
||||
(add-to-list 'auto-mode-alist '("docker-compose[^/]*\\.ya?ml\\'" . docker-compose-mode))
|
||||
|
||||
(if (fboundp 'register-definition-prefixes) (register-definition-prefixes "docker-compose-mode" '("docker-compose-")))
|
||||
|
||||
;;;***
|
||||
|
||||
;; Local Variables:
|
||||
;; version-control: never
|
||||
;; no-byte-compile: t
|
||||
;; no-update-autoloads: t
|
||||
;; coding: utf-8
|
||||
;; End:
|
||||
;;; docker-compose-mode-autoloads.el ends here
|
|
@ -0,0 +1,2 @@
|
|||
;;; Generated package description from /home/bvn13/.emacs.d/elpa/docker-compose-mode-20200830.1336/docker-compose-mode.el -*- no-byte-compile: t -*-
|
||||
(define-package "docker-compose-mode" "20200830.1336" "Major mode for editing docker-compose files" '((emacs "24.3") (dash "2.12.0") (yaml-mode "0.0.12")) :commit "abaa4f3aeb5c62d7d16e186dd7d77f4e846e126a" :authors '(("Ricardo Martins")) :maintainer '("Ricardo Martins") :keywords '("convenience") :url "https://github.com/meqif/docker-compose-mode")
|
|
@ -0,0 +1,172 @@
|
|||
;;; docker-compose-mode.el --- Major mode for editing docker-compose files -*- lexical-binding: t; -*-
|
||||
|
||||
;; Copyright (C) 2017-2018 Ricardo Martins
|
||||
|
||||
;; Author: Ricardo Martins
|
||||
;; URL: https://github.com/meqif/docker-compose-mode
|
||||
;; Package-Version: 20200830.1336
|
||||
;; Package-Commit: abaa4f3aeb5c62d7d16e186dd7d77f4e846e126a
|
||||
;; Version: 1.1.0
|
||||
;; Keywords: convenience
|
||||
;; Package-Requires: ((emacs "24.3") (dash "2.12.0") (yaml-mode "0.0.12"))
|
||||
|
||||
;; Licensed under the Apache License, Version 2.0 (the "License");
|
||||
;; you may not use this file except in compliance with the License.
|
||||
;; You may obtain a copy of the License at
|
||||
;;
|
||||
;; http://www.apache.org/licenses/LICENSE-2.0
|
||||
;;
|
||||
;; Unless required by applicable law or agreed to in writing, software
|
||||
;; distributed under the License is distributed on an "AS IS" BASIS,
|
||||
;; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
;; See the License for the specific language governing permissions and
|
||||
;; limitations under the License.
|
||||
|
||||
;;; Commentary:
|
||||
|
||||
;; Major mode for editing docker-compose files, providing context-aware
|
||||
;; completion of docker-compose keys through completion-at-point-functions.
|
||||
;;
|
||||
;; The completions can be used with the completion system shipped with vanilla
|
||||
;; Emacs, and 3rd-party frontends like company-mode, autocomplete, and
|
||||
;; ido-at-point.
|
||||
;;
|
||||
;; By default, the keyword completion function detects the docker-compose
|
||||
;; version of the current buffer and suggests the appropriate keywords.
|
||||
;;
|
||||
;; See the README for more details.
|
||||
|
||||
;;; Code:
|
||||
|
||||
(require 'cl-lib)
|
||||
(require 'dash)
|
||||
|
||||
(defgroup docker-compose nil
|
||||
"Major mode for editing docker-compose files."
|
||||
:group 'languages
|
||||
:prefix "docker-compose-")
|
||||
|
||||
(defcustom docker-compose-keywords
|
||||
'(
|
||||
("1.0" ("^[a-zA-Z0-9._-]+$" ("build") ("cap_add") ("cap_drop") ("cgroup_parent") ("command") ("container_name") ("cpu_shares") ("cpu_quota") ("cpuset") ("devices") ("dns") ("dns_search") ("dockerfile") ("domainname") ("entrypoint") ("env_file") ("environment" (".+")) ("expose") ("extends" ("service") ("file")) ("extra_hosts" (".+")) ("external_links") ("hostname") ("image") ("ipc") ("labels" (".+")) ("links") ("log_driver") ("log_opt") ("mac_address") ("mem_limit") ("memswap_limit") ("mem_swappiness") ("net") ("pid") ("ports") ("privileged") ("read_only") ("restart") ("security_opt") ("shm_size") ("stdin_open") ("stop_signal") ("tty") ("ulimits" ("^[a-z]+$" ("hard") ("soft"))) ("user") ("volumes") ("volume_driver") ("volumes_from") ("working_dir")))
|
||||
("2.0" ("version") ("services" ("^[a-zA-Z0-9._-]+$" ("blkio_config" ("device_read_bps") ("device_read_iops") ("device_write_bps") ("device_write_iops") ("weight") ("weight_device")) ("build" ("context") ("dockerfile") ("args" (".+"))) ("cap_add") ("cap_drop") ("cgroup_parent") ("command") ("container_name") ("cpu_shares") ("cpu_quota") ("cpuset") ("depends_on") ("devices") ("dns") ("dns_opt") ("dns_search") ("domainname") ("entrypoint") ("env_file") ("environment" (".+")) ("expose") ("extends" ("service") ("file")) ("external_links") ("extra_hosts" (".+")) ("hostname") ("image") ("ipc") ("labels" (".+")) ("links") ("logging" ("driver") ("options")) ("mac_address") ("mem_limit") ("mem_reservation") ("mem_swappiness") ("memswap_limit") ("network_mode") ("networks" ("^[a-zA-Z0-9._-]+$" ("aliases") ("ipv4_address") ("ipv6_address") ("priority"))) ("oom_score_adj") ("group_add") ("pid") ("ports") ("privileged") ("read_only") ("restart") ("security_opt") ("shm_size") ("stdin_open") ("stop_grace_period") ("stop_signal") ("tmpfs") ("tty") ("ulimits" ("^[a-z]+$" ("hard") ("soft"))) ("user") ("volumes") ("volume_driver") ("volumes_from") ("working_dir"))) ("networks" ("^[a-zA-Z0-9._-]+$" ("driver") ("driver_opts" ("^.+$")) ("ipam" ("driver") ("config") ("options" ("^.+$"))) ("external" ("name")) ("internal"))) ("volumes" ("^[a-zA-Z0-9._-]+$" ("driver") ("driver_opts" ("^.+$")) ("external" ("name")))) ("^x-"))
|
||||
("2.1" ("version") ("services" ("^[a-zA-Z0-9._-]+$" ("blkio_config" ("device_read_bps") ("device_read_iops") ("device_write_bps") ("device_write_iops") ("weight") ("weight_device")) ("build" ("context") ("dockerfile") ("args" (".+")) ("labels" (".+"))) ("cap_add") ("cap_drop") ("cgroup_parent") ("command") ("container_name") ("cpu_shares") ("cpu_quota") ("cpu_period") ("cpuset") ("depends_on" ("^[a-zA-Z0-9._-]+$" ("condition"))) ("devices") ("dns_opt") ("dns") ("dns_search") ("domainname") ("entrypoint") ("env_file") ("environment" (".+")) ("expose") ("extends" ("service") ("file")) ("external_links") ("extra_hosts" (".+")) ("healthcheck" ("disable") ("interval") ("retries") ("test") ("timeout")) ("hostname") ("image") ("ipc") ("isolation") ("labels" (".+")) ("links") ("logging" ("driver") ("options")) ("mac_address") ("mem_limit") ("mem_reservation") ("mem_swappiness") ("memswap_limit") ("network_mode") ("networks" ("^[a-zA-Z0-9._-]+$" ("aliases") ("ipv4_address") ("ipv6_address") ("link_local_ips") ("priority"))) ("oom_kill_disable") ("oom_score_adj") ("group_add") ("pid") ("ports") ("privileged") ("read_only") ("restart") ("security_opt") ("shm_size") ("sysctls" (".+")) ("pids_limit") ("stdin_open") ("stop_grace_period") ("stop_signal") ("storage_opt") ("tmpfs") ("tty") ("ulimits" ("^[a-z]+$" ("hard") ("soft"))) ("user") ("userns_mode") ("volumes") ("volume_driver") ("volumes_from") ("working_dir"))) ("networks" ("^[a-zA-Z0-9._-]+$" ("driver") ("driver_opts" ("^.+$")) ("ipam" ("driver") ("config") ("options" ("^.+$"))) ("external" ("name")) ("internal") ("enable_ipv6") ("labels" (".+")) ("name"))) ("volumes" ("^[a-zA-Z0-9._-]+$" ("driver") ("driver_opts" ("^.+$")) ("external" ("name")) ("labels" (".+")) ("name"))) ("^x-"))
|
||||
("2.2" ("version") ("services" ("^[a-zA-Z0-9._-]+$" ("blkio_config" ("device_read_bps") ("device_read_iops") ("device_write_bps") ("device_write_iops") ("weight") ("weight_device")) ("build" ("context") ("dockerfile") ("args" (".+")) ("labels" (".+")) ("cache_from") ("network")) ("cap_add") ("cap_drop") ("cgroup_parent") ("command") ("container_name") ("cpu_count") ("cpu_percent") ("cpu_shares") ("cpu_quota") ("cpu_period") ("cpus") ("cpuset") ("depends_on" ("^[a-zA-Z0-9._-]+$" ("condition"))) ("devices") ("dns_opt") ("dns") ("dns_search") ("domainname") ("entrypoint") ("env_file") ("environment" (".+")) ("expose") ("extends" ("service") ("file")) ("external_links") ("extra_hosts" (".+")) ("healthcheck" ("disable") ("interval") ("retries") ("test") ("timeout")) ("hostname") ("image") ("init") ("ipc") ("isolation") ("labels" (".+")) ("links") ("logging" ("driver") ("options")) ("mac_address") ("mem_limit") ("mem_reservation") ("mem_swappiness") ("memswap_limit") ("network_mode") ("networks" ("^[a-zA-Z0-9._-]+$" ("aliases") ("ipv4_address") ("ipv6_address") ("link_local_ips") ("priority"))) ("oom_kill_disable") ("oom_score_adj") ("group_add") ("pid") ("ports") ("privileged") ("read_only") ("restart") ("scale") ("security_opt") ("shm_size") ("sysctls" (".+")) ("pids_limit") ("stdin_open") ("stop_grace_period") ("stop_signal") ("storage_opt") ("tmpfs") ("tty") ("ulimits" ("^[a-z]+$" ("hard") ("soft"))) ("user") ("userns_mode") ("volumes") ("volume_driver") ("volumes_from") ("working_dir"))) ("networks" ("^[a-zA-Z0-9._-]+$" ("driver") ("driver_opts" ("^.+$")) ("ipam" ("driver") ("config") ("options" ("^.+$"))) ("external" ("name")) ("internal") ("enable_ipv6") ("labels" (".+")) ("name"))) ("volumes" ("^[a-zA-Z0-9._-]+$" ("driver") ("driver_opts" ("^.+$")) ("external" ("name")) ("labels" (".+")) ("name"))) ("^x-"))
|
||||
("2.3" ("version") ("services" ("^[a-zA-Z0-9._-]+$" ("blkio_config" ("device_read_bps") ("device_read_iops") ("device_write_bps") ("device_write_iops") ("weight") ("weight_device")) ("build" ("context") ("dockerfile") ("args" (".+")) ("labels" (".+")) ("cache_from") ("network") ("target") ("shm_size") ("extra_hosts" (".+"))) ("cap_add") ("cap_drop") ("cgroup_parent") ("command") ("container_name") ("cpu_count") ("cpu_percent") ("cpu_shares") ("cpu_quota") ("cpu_period") ("cpus") ("cpuset") ("depends_on" ("^[a-zA-Z0-9._-]+$" ("condition"))) ("device_cgroup_rules") ("devices") ("dns_opt") ("dns") ("dns_search") ("domainname") ("entrypoint") ("env_file") ("environment" (".+")) ("expose") ("extends" ("service") ("file")) ("external_links") ("extra_hosts" (".+")) ("healthcheck" ("disable") ("interval") ("retries") ("start_period") ("test") ("timeout")) ("hostname") ("image") ("init") ("ipc") ("isolation") ("labels" (".+")) ("links") ("logging" ("driver") ("options")) ("mac_address") ("mem_limit") ("mem_reservation") ("mem_swappiness") ("memswap_limit") ("network_mode") ("networks" ("^[a-zA-Z0-9._-]+$" ("aliases") ("ipv4_address") ("ipv6_address") ("link_local_ips") ("priority"))) ("oom_kill_disable") ("oom_score_adj") ("group_add") ("pid") ("ports") ("privileged") ("read_only") ("restart") ("runtime") ("scale") ("security_opt") ("shm_size") ("sysctls" (".+")) ("pids_limit") ("stdin_open") ("stop_grace_period") ("stop_signal") ("storage_opt") ("tmpfs") ("tty") ("ulimits" ("^[a-z]+$" ("hard") ("soft"))) ("user") ("userns_mode") ("volumes") ("volume_driver") ("volumes_from") ("working_dir"))) ("networks" ("^[a-zA-Z0-9._-]+$" ("driver") ("driver_opts" ("^.+$")) ("ipam" ("driver") ("config") ("options" ("^.+$"))) ("external" ("name")) ("internal") ("enable_ipv6") ("labels" (".+")) ("name"))) ("volumes" ("^[a-zA-Z0-9._-]+$" ("driver") ("driver_opts" ("^.+$")) ("external" ("name")) ("labels" (".+")) ("name"))) ("^x-"))
|
||||
("3.0" ("version") ("services" ("^[a-zA-Z0-9._-]+$" ("deploy" ("mode") ("replicas") ("labels" (".+")) ("update_config" ("parallelism") ("delay") ("failure_action") ("monitor") ("max_failure_ratio")) ("resources" ("limits" ("cpus") ("memory")) ("reservations" ("cpus") ("memory"))) ("restart_policy" ("condition") ("delay") ("max_attempts") ("window")) ("placement" ("constraints"))) ("build" ("context") ("dockerfile") ("args" (".+"))) ("cap_add") ("cap_drop") ("cgroup_parent") ("command") ("container_name") ("depends_on") ("devices") ("dns") ("dns_search") ("domainname") ("entrypoint") ("env_file") ("environment" (".+")) ("expose") ("external_links") ("extra_hosts" (".+")) ("healthcheck" ("disable") ("interval") ("retries") ("test") ("timeout")) ("hostname") ("image") ("ipc") ("labels" (".+")) ("links") ("logging" ("driver") ("options" ("^.+$"))) ("mac_address") ("network_mode") ("networks" ("^[a-zA-Z0-9._-]+$" ("aliases") ("ipv4_address") ("ipv6_address"))) ("pid") ("ports") ("privileged") ("read_only") ("restart") ("security_opt") ("shm_size") ("sysctls" (".+")) ("stdin_open") ("stop_grace_period") ("stop_signal") ("tmpfs") ("tty") ("ulimits" ("^[a-z]+$" ("hard") ("soft"))) ("user") ("userns_mode") ("volumes") ("working_dir"))) ("networks" ("^[a-zA-Z0-9._-]+$" ("driver") ("driver_opts" ("^.+$")) ("ipam" ("driver") ("config")) ("external" ("name")) ("internal") ("labels" (".+")))) ("volumes" ("^[a-zA-Z0-9._-]+$" ("driver") ("driver_opts" ("^.+$")) ("external" ("name")) ("labels" (".+")))))
|
||||
("3.1" ("version") ("services" ("^[a-zA-Z0-9._-]+$" ("deploy" ("mode") ("replicas") ("labels" (".+")) ("update_config" ("parallelism") ("delay") ("failure_action") ("monitor") ("max_failure_ratio")) ("resources" ("limits" ("cpus") ("memory")) ("reservations" ("cpus") ("memory"))) ("restart_policy" ("condition") ("delay") ("max_attempts") ("window")) ("placement" ("constraints"))) ("build" ("context") ("dockerfile") ("args" (".+"))) ("cap_add") ("cap_drop") ("cgroup_parent") ("command") ("container_name") ("depends_on") ("devices") ("dns") ("dns_search") ("domainname") ("entrypoint") ("env_file") ("environment" (".+")) ("expose") ("external_links") ("extra_hosts" (".+")) ("healthcheck" ("disable") ("interval") ("retries") ("test") ("timeout")) ("hostname") ("image") ("ipc") ("labels" (".+")) ("links") ("logging" ("driver") ("options" ("^.+$"))) ("mac_address") ("network_mode") ("networks" ("^[a-zA-Z0-9._-]+$" ("aliases") ("ipv4_address") ("ipv6_address"))) ("pid") ("ports") ("privileged") ("read_only") ("restart") ("security_opt") ("shm_size") ("secrets") ("sysctls" (".+")) ("stdin_open") ("stop_grace_period") ("stop_signal") ("tmpfs") ("tty") ("ulimits" ("^[a-z]+$" ("hard") ("soft"))) ("user") ("userns_mode") ("volumes") ("working_dir"))) ("networks" ("^[a-zA-Z0-9._-]+$" ("driver") ("driver_opts" ("^.+$")) ("ipam" ("driver") ("config")) ("external" ("name")) ("internal") ("labels" (".+")))) ("volumes" ("^[a-zA-Z0-9._-]+$" ("driver") ("driver_opts" ("^.+$")) ("external" ("name")) ("labels" (".+")))) ("secrets" ("^[a-zA-Z0-9._-]+$" ("file") ("external" ("name")) ("labels" (".+")))))
|
||||
("3.2" ("version") ("services" ("^[a-zA-Z0-9._-]+$" ("deploy" ("mode") ("endpoint_mode") ("replicas") ("labels" (".+")) ("update_config" ("parallelism") ("delay") ("failure_action") ("monitor") ("max_failure_ratio")) ("resources" ("limits" ("cpus") ("memory")) ("reservations" ("cpus") ("memory"))) ("restart_policy" ("condition") ("delay") ("max_attempts") ("window")) ("placement" ("constraints"))) ("build" ("context") ("dockerfile") ("args" (".+")) ("labels" (".+")) ("cache_from")) ("cap_add") ("cap_drop") ("cgroup_parent") ("command") ("container_name") ("depends_on") ("devices") ("dns") ("dns_search") ("domainname") ("entrypoint") ("env_file") ("environment" (".+")) ("expose") ("external_links") ("extra_hosts" (".+")) ("healthcheck" ("disable") ("interval") ("retries") ("test") ("timeout")) ("hostname") ("image") ("ipc") ("labels" (".+")) ("links") ("logging" ("driver") ("options" ("^.+$"))) ("mac_address") ("network_mode") ("networks" ("^[a-zA-Z0-9._-]+$" ("aliases") ("ipv4_address") ("ipv6_address"))) ("pid") ("ports") ("privileged") ("read_only") ("restart") ("security_opt") ("shm_size") ("secrets") ("sysctls" (".+")) ("stdin_open") ("stop_grace_period") ("stop_signal") ("tmpfs") ("tty") ("ulimits" ("^[a-z]+$" ("hard") ("soft"))) ("user") ("userns_mode") ("volumes") ("working_dir"))) ("networks" ("^[a-zA-Z0-9._-]+$" ("driver") ("driver_opts" ("^.+$")) ("ipam" ("driver") ("config")) ("external" ("name")) ("internal") ("attachable") ("labels" (".+")))) ("volumes" ("^[a-zA-Z0-9._-]+$" ("driver") ("driver_opts" ("^.+$")) ("external" ("name")) ("labels" (".+")))) ("secrets" ("^[a-zA-Z0-9._-]+$" ("file") ("external" ("name")) ("labels" (".+")))))
|
||||
("3.3" ("version") ("services" ("^[a-zA-Z0-9._-]+$" ("deploy" ("mode") ("endpoint_mode") ("replicas") ("labels" (".+")) ("update_config" ("parallelism") ("delay") ("failure_action") ("monitor") ("max_failure_ratio")) ("resources" ("limits" ("cpus") ("memory")) ("reservations" ("cpus") ("memory"))) ("restart_policy" ("condition") ("delay") ("max_attempts") ("window")) ("placement" ("constraints") ("preferences"))) ("build" ("context") ("dockerfile") ("args" (".+")) ("labels" (".+")) ("cache_from")) ("cap_add") ("cap_drop") ("cgroup_parent") ("command") ("configs") ("container_name") ("credential_spec" ("file") ("registry")) ("depends_on") ("devices") ("dns") ("dns_search") ("domainname") ("entrypoint") ("env_file") ("environment" (".+")) ("expose") ("external_links") ("extra_hosts" (".+")) ("healthcheck" ("disable") ("interval") ("retries") ("test") ("timeout")) ("hostname") ("image") ("ipc") ("labels" (".+")) ("links") ("logging" ("driver") ("options" ("^.+$"))) ("mac_address") ("network_mode") ("networks" ("^[a-zA-Z0-9._-]+$" ("aliases") ("ipv4_address") ("ipv6_address"))) ("pid") ("ports") ("privileged") ("read_only") ("restart") ("security_opt") ("shm_size") ("secrets") ("sysctls" (".+")) ("stdin_open") ("stop_grace_period") ("stop_signal") ("tmpfs") ("tty") ("ulimits" ("^[a-z]+$" ("hard") ("soft"))) ("user") ("userns_mode") ("volumes") ("working_dir"))) ("networks" ("^[a-zA-Z0-9._-]+$" ("driver") ("driver_opts" ("^.+$")) ("ipam" ("driver") ("config")) ("external" ("name")) ("internal") ("attachable") ("labels" (".+")))) ("volumes" ("^[a-zA-Z0-9._-]+$" ("driver") ("driver_opts" ("^.+$")) ("external" ("name")) ("labels" (".+")))) ("secrets" ("^[a-zA-Z0-9._-]+$" ("file") ("external" ("name")) ("labels" (".+")))) ("configs" ("^[a-zA-Z0-9._-]+$" ("file") ("external" ("name")) ("labels" (".+")))))
|
||||
("3.4" ("version") ("services" ("^[a-zA-Z0-9._-]+$" ("deploy" ("mode") ("endpoint_mode") ("replicas") ("labels" (".+")) ("update_config" ("parallelism") ("delay") ("failure_action") ("monitor") ("max_failure_ratio") ("order")) ("resources" ("limits" ("cpus") ("memory")) ("reservations" ("cpus") ("memory"))) ("restart_policy" ("condition") ("delay") ("max_attempts") ("window")) ("placement" ("constraints") ("preferences"))) ("build" ("context") ("dockerfile") ("args" (".+")) ("labels" (".+")) ("cache_from") ("network") ("target")) ("cap_add") ("cap_drop") ("cgroup_parent") ("command") ("configs") ("container_name") ("credential_spec" ("file") ("registry")) ("depends_on") ("devices") ("dns") ("dns_search") ("domainname") ("entrypoint") ("env_file") ("environment" (".+")) ("expose") ("external_links") ("extra_hosts" (".+")) ("healthcheck" ("disable") ("interval") ("retries") ("test") ("timeout") ("start_period")) ("hostname") ("image") ("ipc") ("labels" (".+")) ("links") ("logging" ("driver") ("options" ("^.+$"))) ("mac_address") ("network_mode") ("networks" ("^[a-zA-Z0-9._-]+$" ("aliases") ("ipv4_address") ("ipv6_address"))) ("pid") ("ports") ("privileged") ("read_only") ("restart") ("security_opt") ("shm_size") ("secrets") ("sysctls" (".+")) ("stdin_open") ("stop_grace_period") ("stop_signal") ("tmpfs") ("tty") ("ulimits" ("^[a-z]+$" ("hard") ("soft"))) ("user") ("userns_mode") ("volumes") ("working_dir"))) ("networks" ("^[a-zA-Z0-9._-]+$" ("driver") ("driver_opts" ("^.+$")) ("ipam" ("driver") ("config")) ("external" ("name")) ("internal") ("attachable") ("labels" (".+")))) ("volumes" ("^[a-zA-Z0-9._-]+$" ("name") ("driver") ("driver_opts" ("^.+$")) ("external" ("name")) ("labels" (".+")))) ("secrets" ("^[a-zA-Z0-9._-]+$" ("file") ("external" ("name")) ("labels" (".+")))) ("configs" ("^[a-zA-Z0-9._-]+$" ("file") ("external" ("name")) ("labels" (".+")))) ("^x-"))
|
||||
("3.5" ("version") ("services" ("^[a-zA-Z0-9._-]+$" ("deploy" ("mode") ("endpoint_mode") ("replicas") ("labels" (".+")) ("update_config" ("parallelism") ("delay") ("failure_action") ("monitor") ("max_failure_ratio") ("order")) ("resources" ("limits" ("cpus") ("memory")) ("reservations" ("cpus") ("memory") ("generic_resources"))) ("restart_policy" ("condition") ("delay") ("max_attempts") ("window")) ("placement" ("constraints") ("preferences"))) ("build" ("context") ("dockerfile") ("args" (".+")) ("labels" (".+")) ("cache_from") ("network") ("target") ("shm_size")) ("cap_add") ("cap_drop") ("cgroup_parent") ("command") ("configs") ("container_name") ("credential_spec" ("file") ("registry")) ("depends_on") ("devices") ("dns") ("dns_search") ("domainname") ("entrypoint") ("env_file") ("environment" (".+")) ("expose") ("external_links") ("extra_hosts" (".+")) ("healthcheck" ("disable") ("interval") ("retries") ("test") ("timeout") ("start_period")) ("hostname") ("image") ("ipc") ("isolation") ("labels" (".+")) ("links") ("logging" ("driver") ("options" ("^.+$"))) ("mac_address") ("network_mode") ("networks" ("^[a-zA-Z0-9._-]+$" ("aliases") ("ipv4_address") ("ipv6_address"))) ("pid") ("ports") ("privileged") ("read_only") ("restart") ("security_opt") ("shm_size") ("secrets") ("sysctls" (".+")) ("stdin_open") ("stop_grace_period") ("stop_signal") ("tmpfs") ("tty") ("ulimits" ("^[a-z]+$" ("hard") ("soft"))) ("user") ("userns_mode") ("volumes") ("working_dir"))) ("networks" ("^[a-zA-Z0-9._-]+$" ("name") ("driver") ("driver_opts" ("^.+$")) ("ipam" ("driver") ("config")) ("external" ("name")) ("internal") ("attachable") ("labels" (".+")))) ("volumes" ("^[a-zA-Z0-9._-]+$" ("name") ("driver") ("driver_opts" ("^.+$")) ("external" ("name")) ("labels" (".+")))) ("secrets" ("^[a-zA-Z0-9._-]+$" ("name") ("file") ("external" ("name")) ("labels" (".+")))) ("configs" ("^[a-zA-Z0-9._-]+$" ("name") ("file") ("external" ("name")) ("labels" (".+")))) ("^x-"))
|
||||
("3.6" ("version") ("services" ("^[a-zA-Z0-9._-]+$" ("deploy" ("mode") ("endpoint_mode") ("replicas") ("labels" (".+")) ("update_config" ("parallelism") ("delay") ("failure_action") ("monitor") ("max_failure_ratio") ("order")) ("resources" ("limits" ("cpus") ("memory")) ("reservations" ("cpus") ("memory") ("generic_resources"))) ("restart_policy" ("condition") ("delay") ("max_attempts") ("window")) ("placement" ("constraints") ("preferences"))) ("build" ("context") ("dockerfile") ("args" (".+")) ("labels" (".+")) ("cache_from") ("network") ("target") ("shm_size")) ("cap_add") ("cap_drop") ("cgroup_parent") ("command") ("configs") ("container_name") ("credential_spec" ("file") ("registry")) ("depends_on") ("devices") ("dns") ("dns_search") ("domainname") ("entrypoint") ("env_file") ("environment" (".+")) ("expose") ("external_links") ("extra_hosts" (".+")) ("healthcheck" ("disable") ("interval") ("retries") ("test") ("timeout") ("start_period")) ("hostname") ("image") ("ipc") ("isolation") ("labels" (".+")) ("links") ("logging" ("driver") ("options" ("^.+$"))) ("mac_address") ("network_mode") ("networks" ("^[a-zA-Z0-9._-]+$" ("aliases") ("ipv4_address") ("ipv6_address"))) ("pid") ("ports") ("privileged") ("read_only") ("restart") ("security_opt") ("shm_size") ("secrets") ("sysctls" (".+")) ("stdin_open") ("stop_grace_period") ("stop_signal") ("tmpfs") ("tty") ("ulimits" ("^[a-z]+$" ("hard") ("soft"))) ("user") ("userns_mode") ("volumes") ("working_dir"))) ("networks" ("^[a-zA-Z0-9._-]+$" ("name") ("driver") ("driver_opts" ("^.+$")) ("ipam" ("driver") ("config")) ("external" ("name")) ("internal") ("attachable") ("labels" (".+")))) ("volumes" ("^[a-zA-Z0-9._-]+$" ("name") ("driver") ("driver_opts" ("^.+$")) ("external" ("name")) ("labels" (".+")))) ("secrets" ("^[a-zA-Z0-9._-]+$" ("name") ("file") ("external" ("name")) ("labels" (".+")))) ("configs" ("^[a-zA-Z0-9._-]+$" ("name") ("file") ("external" ("name")) ("labels" (".+")))) ("^x-")))
|
||||
"Association list of docker-compose keywords for each version."
|
||||
:type '(alist :key-type string :value-type (repeat string))
|
||||
:group 'docker-compose)
|
||||
|
||||
(defun docker-compose--find-version ()
|
||||
"Find the version of the docker-compose file.
|
||||
It is assumed that files lacking an explicit 'version' key are
|
||||
version 1."
|
||||
(save-excursion
|
||||
(goto-char (point-min))
|
||||
(if (re-search-forward "^version:\s*" (point-at-eol) t 1)
|
||||
(when (looking-at "\\([\"']\\)\\([0-9]\\(?:\.[0-9]+\\(?:-\\w+\\)?\\)?\\)\\1$")
|
||||
(match-string-no-properties 2))
|
||||
"1.0")))
|
||||
|
||||
(defun docker-compose--normalize-version (version)
|
||||
"Normalize VERSION to conform to <major>.<minor>."
|
||||
(if (string-match-p "^[0-9]$" version)
|
||||
(concat version ".0")
|
||||
version))
|
||||
|
||||
(defun docker-compose--keywords-for-buffer ()
|
||||
"Obtain keywords appropriate for the current buffer's docker-compose version.
|
||||
|
||||
If the version is not present in `docker-compose-keywords', the
|
||||
final (most recent) entry in it is used."
|
||||
(-when-let* ((version (-some-> (docker-compose--find-version)
|
||||
(docker-compose--normalize-version))))
|
||||
(cdr (or (assoc version docker-compose-keywords)
|
||||
(car (last docker-compose-keywords))))))
|
||||
|
||||
(defun docker-compose--post-completion (_string status)
|
||||
"Execute actions after completing with candidate.
|
||||
Read the documentation for the `completion-extra-properties'
|
||||
variable for additional information about STRING and STATUS."
|
||||
(when (eq status 'finished)
|
||||
(insert ": ")))
|
||||
|
||||
(defun docker-compose--find-context ()
|
||||
"Return a list with the ancestor keys of the current point."
|
||||
(save-excursion
|
||||
(beginning-of-line)
|
||||
(-let* ((keywords nil)
|
||||
(previous-indentation (skip-chars-forward "\t "))
|
||||
(current-indentation nil))
|
||||
(cl-loop
|
||||
do
|
||||
(forward-line -1)
|
||||
(setq current-indentation (skip-chars-forward "\t "))
|
||||
(when (and (< current-indentation previous-indentation)
|
||||
(looking-at "\\([a-zA-Z][a-zA-Z0-9_]+\\):"))
|
||||
(setq previous-indentation current-indentation)
|
||||
(push (match-string-no-properties 1) keywords))
|
||||
|
||||
until (or (= previous-indentation 0) (bobp)))
|
||||
keywords)))
|
||||
|
||||
(defun docker-compose--find-subtree (nodes tree)
|
||||
"Search a TREE of keywords for the subtree matching a sequence of the parent NODES."
|
||||
(if nodes
|
||||
(-when-let* ((node (car nodes))
|
||||
(subtree (--find (string-match-p (car it) node) tree)))
|
||||
(docker-compose--find-subtree (cdr nodes) (cdr subtree)))
|
||||
tree))
|
||||
|
||||
(defun docker-compose--filter-candidates-tree (prefix tree)
|
||||
"Return a list of candidate keywords matching a PREFIX in a keyword TREE."
|
||||
(let ((candidates nil))
|
||||
(dolist (subtree tree (nreverse candidates))
|
||||
(when (string-prefix-p prefix (car subtree))
|
||||
(push (car subtree) candidates)))))
|
||||
|
||||
(defun docker-compose--candidates (prefix)
|
||||
"Obtain applicable candidates from the keywords list for the PREFIX."
|
||||
(-let* ((keywords (docker-compose--keywords-for-buffer))
|
||||
(nodes (docker-compose--find-context))
|
||||
(subtree (docker-compose--find-subtree nodes keywords)))
|
||||
(if prefix
|
||||
(docker-compose--filter-candidates-tree prefix subtree)
|
||||
(-map #'car subtree))))
|
||||
|
||||
(defun docker-compose--prefix ()
|
||||
"Get a prefix and its starting and ending points from the current position."
|
||||
(save-excursion
|
||||
(beginning-of-line)
|
||||
(when (looking-at "^[\t ]*\\([a-zA-Z][a-zA-Z0-9_]+\\)$")
|
||||
(list (match-string-no-properties 1) (match-beginning 1) (match-end 1)))))
|
||||
|
||||
(defun docker-compose-keyword-complete-at-point ()
|
||||
"`completion-at-point-functions' function for docker-compose keywords."
|
||||
(-when-let* (((prefix start end) (docker-compose--prefix)))
|
||||
(list start end (docker-compose--candidates prefix)
|
||||
:exclusive 'yes
|
||||
:company-docsig #'identity
|
||||
:exit-function #'docker-compose--post-completion)))
|
||||
|
||||
(declare-function yaml-mode "ext:yaml-mode")
|
||||
|
||||
;;;###autoload
|
||||
(define-derived-mode docker-compose-mode yaml-mode "docker-compose"
|
||||
"Major mode to edit docker-compose files."
|
||||
(setq-local completion-at-point-functions
|
||||
'(docker-compose-keyword-complete-at-point)))
|
||||
|
||||
;;;###autoload
|
||||
(add-to-list 'auto-mode-alist
|
||||
'("docker-compose[^/]*\\.ya?ml\\'" . docker-compose-mode))
|
||||
|
||||
(provide 'docker-compose-mode)
|
||||
;;; docker-compose-mode.el ends here
|
Binary file not shown.
|
@ -0,0 +1,47 @@
|
|||
;;; dockerfile-mode-autoloads.el --- automatically extracted autoloads
|
||||
;;
|
||||
;;; Code:
|
||||
|
||||
(add-to-list 'load-path (directory-file-name
|
||||
(or (file-name-directory #$) (car load-path))))
|
||||
|
||||
|
||||
;;;### (autoloads nil "dockerfile-mode" "dockerfile-mode.el" (0 0
|
||||
;;;;;; 0 0))
|
||||
;;; Generated autoloads from dockerfile-mode.el
|
||||
|
||||
(autoload 'dockerfile-build-buffer "dockerfile-mode" "\
|
||||
Build an image called IMAGE-NAME based upon the buffer.
|
||||
|
||||
If prefix arg NO-CACHE is set, don't cache the image.
|
||||
The build string will be of the format:
|
||||
`sudo docker build --no-cache --tag IMAGE-NAME --build-args arg1.. -f filename directory`
|
||||
|
||||
\(fn IMAGE-NAME &optional NO-CACHE)" t nil)
|
||||
|
||||
(autoload 'dockerfile-build-no-cache-buffer "dockerfile-mode" "\
|
||||
Build an image called IMAGE-NAME based upon the buffer without cache.
|
||||
|
||||
\(fn IMAGE-NAME)" t nil)
|
||||
|
||||
(autoload 'dockerfile-mode "dockerfile-mode" "\
|
||||
A major mode to edit Dockerfiles.
|
||||
\\{dockerfile-mode-map}
|
||||
|
||||
\(fn)" t nil)
|
||||
|
||||
(add-to-list 'auto-mode-alist '("/Dockerfile\\(?:\\.[^/\\]*\\)?\\'" . dockerfile-mode))
|
||||
|
||||
(add-to-list 'auto-mode-alist '("\\.dockerfile\\'" . dockerfile-mode))
|
||||
|
||||
(if (fboundp 'register-definition-prefixes) (register-definition-prefixes "dockerfile-mode" '("dockerfile-")))
|
||||
|
||||
;;;***
|
||||
|
||||
;; Local Variables:
|
||||
;; version-control: never
|
||||
;; no-byte-compile: t
|
||||
;; no-update-autoloads: t
|
||||
;; coding: utf-8
|
||||
;; End:
|
||||
;;; dockerfile-mode-autoloads.el ends here
|
|
@ -0,0 +1,2 @@
|
|||
;;; Generated package description from /home/bvn13/.emacs.d/elpa/dockerfile-mode-20210404.2224/dockerfile-mode.el -*- no-byte-compile: t -*-
|
||||
(define-package "dockerfile-mode" "20210404.2224" "Major mode for editing Docker's Dockerfiles" '((emacs "24")) :commit "ad06a41259ff2961d603bf23a3a8fbd22dde2161" :url "https://github.com/spotify/dockerfile-mode")
|
|
@ -0,0 +1,254 @@
|
|||
;;; dockerfile-mode.el --- Major mode for editing Docker's Dockerfiles -*- lexical-binding: t -*-
|
||||
|
||||
;; Copyright (c) 2013 Spotify AB
|
||||
;; Package-Requires: ((emacs "24"))
|
||||
;; Package-Version: 20210404.2224
|
||||
;; Package-Commit: ad06a41259ff2961d603bf23a3a8fbd22dde2161
|
||||
;; Homepage: https://github.com/spotify/dockerfile-mode
|
||||
;;
|
||||
;; Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
||||
;; use this file except in compliance with the License. You may obtain a copy of
|
||||
;; the License at
|
||||
;;
|
||||
;; http://www.apache.org/licenses/LICENSE-2.0
|
||||
;;
|
||||
;; Unless required by applicable law or agreed to in writing, software
|
||||
;; distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
||||
;; WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
||||
;; License for the specific language governing permissions and limitations under
|
||||
;; the License.
|
||||
|
||||
;;; Commentary:
|
||||
|
||||
;; Provides a major mode `dockerfile-mode' for use with the standard
|
||||
;; `Dockerfile' file format. Additional convenience functions allow
|
||||
;; images to be built easily.
|
||||
|
||||
;;; Code:
|
||||
|
||||
(require 'sh-script)
|
||||
(require 'rx)
|
||||
|
||||
|
||||
(declare-function cygwin-convert-file-name-to-windows "cygw32.c" (file &optional absolute-p))
|
||||
|
||||
(defgroup dockerfile nil
|
||||
"dockerfile code editing commands for Emacs."
|
||||
:link '(custom-group-link :tag "Font Lock Faces group" font-lock-faces)
|
||||
:prefix "dockerfile-"
|
||||
:group 'languages)
|
||||
|
||||
(defcustom dockerfile-mode-command "docker"
|
||||
"Which binary to use to build images."
|
||||
:group 'dockerfile
|
||||
:type 'string)
|
||||
|
||||
(defcustom dockerfile-use-sudo nil
|
||||
"Runs docker builder command with sudo."
|
||||
:type 'boolean
|
||||
:group 'dockerfile)
|
||||
|
||||
(defcustom dockerfile-build-args nil
|
||||
"List of --build-arg to pass to docker build.
|
||||
|
||||
Each element of the list will be passed as a separate
|
||||
--build-arg to the docker build command."
|
||||
:type '(repeat string)
|
||||
:group 'dockerfile)
|
||||
|
||||
(defcustom dockerfile-use-buildkit nil
|
||||
"Use Docker buildkit for building images?
|
||||
|
||||
This is the new buildsystem for docker, and in time it will replace the old one
|
||||
but for now it has to be explicitly enabled to work.
|
||||
It is supported from docker 18.09"
|
||||
:type 'boolean)
|
||||
|
||||
(defcustom dockerfile-indent-offset (or standard-indent 2)
|
||||
"Dockerfile number of columns for margin-changing functions to indent."
|
||||
:type 'integer
|
||||
:safe #'integerp
|
||||
:group 'dockerfile)
|
||||
|
||||
(defface dockerfile-image-name
|
||||
'((t (:inherit (font-lock-type-face bold))))
|
||||
"Face to highlight the base image name after FROM instruction.")
|
||||
|
||||
(defface dockerfile-image-alias
|
||||
'((t (:inherit (font-lock-constant-face bold))))
|
||||
"Face to highlight the base image alias inf FROM ... AS <alias> construct.")
|
||||
|
||||
(defconst dockerfile--from-regex
|
||||
(rx "from " (group (+? nonl)) (or " " eol) (? "as " (group (1+ nonl)))))
|
||||
|
||||
(defvar dockerfile-font-lock-keywords
|
||||
`(,(cons (rx (or line-start "onbuild ")
|
||||
(group (or "from" "maintainer" "run" "cmd" "expose" "env" "arg"
|
||||
"add" "copy" "entrypoint" "volume" "user" "workdir" "onbuild"
|
||||
"label" "stopsignal" "shell" "healthcheck"))
|
||||
word-boundary)
|
||||
font-lock-keyword-face)
|
||||
(,dockerfile--from-regex
|
||||
(1 'dockerfile-image-name)
|
||||
(2 'dockerfile-image-alias nil t))
|
||||
,@(sh-font-lock-keywords)
|
||||
,@(sh-font-lock-keywords-2)
|
||||
,@(sh-font-lock-keywords-1))
|
||||
"Default `font-lock-keywords' for `dockerfile mode'.")
|
||||
|
||||
(defvar dockerfile-mode-map
|
||||
(let ((map (make-sparse-keymap))
|
||||
(menu-map (make-sparse-keymap)))
|
||||
(define-key map "\C-c\C-b" #'dockerfile-build-buffer)
|
||||
(define-key map "\C-c\M-b" #'dockerfile-build-no-cache-buffer)
|
||||
(define-key map "\C-c\C-c" #'comment-region)
|
||||
(define-key map [menu-bar dockerfile-mode] (cons "Dockerfile" menu-map))
|
||||
(define-key menu-map [dfc]
|
||||
'(menu-item "Comment Region" comment-region
|
||||
:help "Comment Region"))
|
||||
(define-key menu-map [dfb]
|
||||
'(menu-item "Build" dockerfile-build-buffer
|
||||
:help "Send the Dockerfile to docker build"))
|
||||
(define-key menu-map [dfb]
|
||||
'(menu-item "Build without cache" dockerfile-build-no-cache-buffer
|
||||
:help "Send the Dockerfile to docker build without cache"))
|
||||
map))
|
||||
|
||||
(defvar dockerfile-mode-syntax-table
|
||||
(let ((table (make-syntax-table)))
|
||||
(modify-syntax-entry ?# "<" table)
|
||||
(modify-syntax-entry ?\n ">" table)
|
||||
(modify-syntax-entry ?' "\"" table)
|
||||
(modify-syntax-entry ?= "." table)
|
||||
table)
|
||||
"Syntax table for `dockerfile-mode'.")
|
||||
|
||||
(define-abbrev-table 'dockerfile-mode-abbrev-table nil
|
||||
"Abbrev table used while in `dockerfile-mode'.")
|
||||
|
||||
(unless dockerfile-mode-abbrev-table
|
||||
(define-abbrev-table 'dockerfile-mode-abbrev-table ()))
|
||||
|
||||
(defun dockerfile-indent-line-function ()
|
||||
"Indent lines in a Dockerfile.
|
||||
|
||||
Lines beginning with a keyword are ignored, and any others are
|
||||
indented by one `dockerfile-indent-offset'."
|
||||
(unless (member (get-text-property (point-at-bol) 'face)
|
||||
'(font-lock-comment-delimiter-face font-lock-keyword-face))
|
||||
(save-excursion
|
||||
(beginning-of-line)
|
||||
(skip-chars-forward "[ \t]" (point-at-eol))
|
||||
(unless (equal (point) (point-at-eol)) ; Ignore empty lines.
|
||||
;; Delete existing whitespace.
|
||||
(delete-char (- (point-at-bol) (point)))
|
||||
(indent-to dockerfile-indent-offset)))))
|
||||
|
||||
(defun dockerfile-build-arg-string ()
|
||||
"Create a --build-arg string for each element in `dockerfile-build-args'."
|
||||
(mapconcat (lambda (arg) (concat "--build-arg " (shell-quote-argument arg)))
|
||||
dockerfile-build-args " "))
|
||||
|
||||
(defun dockerfile-standard-filename (file)
|
||||
"Convert the FILE name to OS standard.
|
||||
If in Cygwin environment, uses Cygwin specific function to convert the
|
||||
file name. Otherwise, uses Emacs' standard conversion function."
|
||||
(if (fboundp 'cygwin-convert-file-name-to-windows)
|
||||
(replace-regexp-in-string
|
||||
(rx "\\") "\\\\" (cygwin-convert-file-name-to-windows file) t t)
|
||||
(convert-standard-filename file)))
|
||||
|
||||
(defun dockerfile-tag-string (image-name)
|
||||
"Return a --tag shell-quoted IMAGE-NAME string or an empty string if image-name is blank."
|
||||
(if (string= image-name "") "" (format "--tag %s " (shell-quote-argument image-name))))
|
||||
|
||||
(define-obsolete-variable-alias 'docker-image-name 'dockerfile-image-name "2017-10-22")
|
||||
|
||||
(defvar dockerfile-image-name nil
|
||||
"Name of the dockerfile currently being used.
|
||||
This can be set in file or directory-local variables.")
|
||||
|
||||
(defvar dockerfile-image-name-history nil
|
||||
"History of image names read by `dockerfile-read-image-name'.")
|
||||
|
||||
(defun dockerfile-read-image-name ()
|
||||
"Read a docker image name."
|
||||
(read-string "Image name: " dockerfile-image-name 'dockerfile-image-name-history))
|
||||
|
||||
|
||||
;;;###autoload
|
||||
(defun dockerfile-build-buffer (image-name &optional no-cache)
|
||||
"Build an image called IMAGE-NAME based upon the buffer.
|
||||
|
||||
If prefix arg NO-CACHE is set, don't cache the image.
|
||||
The build string will be of the format:
|
||||
`sudo docker build --no-cache --tag IMAGE-NAME --build-args arg1.. -f filename directory`"
|
||||
|
||||
(interactive (list (dockerfile-read-image-name) prefix-arg))
|
||||
(save-buffer)
|
||||
(compilation-start
|
||||
(format
|
||||
"%s%s%s build %s %s %s -f %s %s"
|
||||
(if dockerfile-use-buildkit "DOCKER_BUILDKIT=1 " "")
|
||||
(if dockerfile-use-sudo "sudo " "")
|
||||
dockerfile-mode-command
|
||||
(if no-cache "--no-cache" "")
|
||||
(dockerfile-tag-string image-name)
|
||||
(dockerfile-build-arg-string)
|
||||
(shell-quote-argument (dockerfile-standard-filename
|
||||
(or (file-remote-p (buffer-file-name) 'localname)
|
||||
(buffer-file-name))))
|
||||
(shell-quote-argument (dockerfile-standard-filename
|
||||
(or (file-remote-p default-directory 'localname)
|
||||
default-directory))))
|
||||
nil
|
||||
(lambda (_) (format "*docker-build-output: %s *" image-name))))
|
||||
|
||||
;;;###autoload
|
||||
(defun dockerfile-build-no-cache-buffer (image-name)
|
||||
"Build an image called IMAGE-NAME based upon the buffer without cache."
|
||||
(interactive (list (dockerfile-read-image-name)))
|
||||
(dockerfile-build-buffer image-name t))
|
||||
|
||||
(defun dockerfile--imenu-function ()
|
||||
"Find the previous headline from point.
|
||||
|
||||
Search for a FROM instruction. If an alias is used this is
|
||||
returned, otherwise the base image name is used."
|
||||
(when (re-search-backward dockerfile--from-regex nil t)
|
||||
(let ((data (match-data)))
|
||||
(when (match-string 2)
|
||||
;; we drop the first match group because
|
||||
;; imenu-generic-expression can only use one offset, so we
|
||||
;; normalize to `1'.
|
||||
(set-match-data (list (nth 0 data) (nth 1 data) (nth 4 data) (nth 5 data))))
|
||||
t)))
|
||||
|
||||
;;;###autoload
|
||||
(define-derived-mode dockerfile-mode prog-mode "Dockerfile"
|
||||
"A major mode to edit Dockerfiles.
|
||||
\\{dockerfile-mode-map}
|
||||
"
|
||||
(set-syntax-table dockerfile-mode-syntax-table)
|
||||
(set (make-local-variable 'imenu-generic-expression)
|
||||
`(("Stage" dockerfile--imenu-function 1)))
|
||||
(set (make-local-variable 'require-final-newline) mode-require-final-newline)
|
||||
(set (make-local-variable 'comment-start) "#")
|
||||
(set (make-local-variable 'comment-end) "")
|
||||
(set (make-local-variable 'comment-start-skip) "#+ *")
|
||||
(set (make-local-variable 'parse-sexp-ignore-comments) t)
|
||||
(set (make-local-variable 'font-lock-defaults)
|
||||
'(dockerfile-font-lock-keywords nil t))
|
||||
(setq local-abbrev-table dockerfile-mode-abbrev-table)
|
||||
(set (make-local-variable 'indent-line-function) #'dockerfile-indent-line-function))
|
||||
|
||||
;;;###autoload
|
||||
(add-to-list 'auto-mode-alist '("/Dockerfile\\(?:\\.[^/\\]*\\)?\\'" .
|
||||
dockerfile-mode))
|
||||
|
||||
;;;###autoload
|
||||
(add-to-list 'auto-mode-alist '("\\.dockerfile\\'" . dockerfile-mode))
|
||||
|
||||
(provide 'dockerfile-mode)
|
||||
|
||||
;;; dockerfile-mode.el ends here
|
Binary file not shown.
|
@ -0,0 +1,33 @@
|
|||
;;; yaml-mode-autoloads.el --- automatically extracted autoloads
|
||||
;;
|
||||
;;; Code:
|
||||
|
||||
(add-to-list 'load-path (directory-file-name
|
||||
(or (file-name-directory #$) (car load-path))))
|
||||
|
||||
|
||||
;;;### (autoloads nil "yaml-mode" "yaml-mode.el" (0 0 0 0))
|
||||
;;; Generated autoloads from yaml-mode.el
|
||||
|
||||
(let ((loads (get 'yaml 'custom-loads))) (if (member '"yaml-mode" loads) nil (put 'yaml 'custom-loads (cons '"yaml-mode" loads))))
|
||||
|
||||
(autoload 'yaml-mode "yaml-mode" "\
|
||||
Simple mode to edit YAML.
|
||||
|
||||
\\{yaml-mode-map}
|
||||
|
||||
\(fn)" t nil)
|
||||
|
||||
(add-to-list 'auto-mode-alist '("\\.\\(e?ya?\\|ra\\)ml\\'" . yaml-mode))
|
||||
|
||||
(if (fboundp 'register-definition-prefixes) (register-definition-prefixes "yaml-mode" '("yaml-")))
|
||||
|
||||
;;;***
|
||||
|
||||
;; Local Variables:
|
||||
;; version-control: never
|
||||
;; no-byte-compile: t
|
||||
;; no-update-autoloads: t
|
||||
;; coding: utf-8
|
||||
;; End:
|
||||
;;; yaml-mode-autoloads.el ends here
|
|
@ -0,0 +1,2 @@
|
|||
;;; Generated package description from /home/bvn13/.emacs.d/elpa/yaml-mode-20201109.1026/yaml-mode.el -*- no-byte-compile: t -*-
|
||||
(define-package "yaml-mode" "20201109.1026" "Major mode for editing YAML files" '((emacs "24.1")) :commit "fc5e1c58f94472944c4aa838f00f6adcac6fa992" :authors '(("Yoshiki Kurihara" . "clouder@gmail.com") ("Marshall T. Vandegrift" . "llasram@gmail.com")) :maintainer '("Vasilij Schneidermann" . "mail@vasilij.de") :keywords '("data" "yaml"))
|
|
@ -0,0 +1,490 @@
|
|||
;;; yaml-mode.el --- Major mode for editing YAML files
|
||||
|
||||
;; Copyright (C) 2010-2014 Yoshiki Kurihara
|
||||
|
||||
;; Author: Yoshiki Kurihara <clouder@gmail.com>
|
||||
;; Marshall T. Vandegrift <llasram@gmail.com>
|
||||
;; Maintainer: Vasilij Schneidermann <mail@vasilij.de>
|
||||
;; Package-Requires: ((emacs "24.1"))
|
||||
;; Package-Version: 20201109.1026
|
||||
;; Package-Commit: fc5e1c58f94472944c4aa838f00f6adcac6fa992
|
||||
;; Keywords: data yaml
|
||||
;; Version: 0.0.15
|
||||
|
||||
;; This file is not part of Emacs
|
||||
|
||||
;; This file is free software; you can redistribute it and/or modify
|
||||
;; it under the terms of the GNU General Public License as published by
|
||||
;; the Free Software Foundation; either version 2, or (at your option)
|
||||
;; any later version.
|
||||
|
||||
;; This file is distributed in the hope that it will be useful,
|
||||
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
;; GNU General Public License for more details.
|
||||
|
||||
;; You should have received a copy of the GNU General Public License along
|
||||
;; with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
;; 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
|
||||
;;; Commentary:
|
||||
|
||||
;; This is a major mode for editing files in the YAML data
|
||||
;; serialization format. It was initially developed by Yoshiki
|
||||
;; Kurihara and many features were added by Marshall Vandegrift. As
|
||||
;; YAML and Python share the fact that indentation determines
|
||||
;; structure, this mode provides indentation and indentation command
|
||||
;; behavior very similar to that of python-mode.
|
||||
|
||||
;;; Installation:
|
||||
|
||||
;; To install, just drop this file into a directory in your
|
||||
;; `load-path' and (optionally) byte-compile it. To automatically
|
||||
;; handle files ending in '.yml', add something like:
|
||||
;;
|
||||
;; (require 'yaml-mode)
|
||||
;; (add-to-list 'auto-mode-alist '("\\.yml\\'" . yaml-mode))
|
||||
;;
|
||||
;; to your .emacs file.
|
||||
;;
|
||||
;; Unlike python-mode, this mode follows the Emacs convention of not
|
||||
;; binding the ENTER key to `newline-and-indent'. To get this
|
||||
;; behavior, add the key definition to `yaml-mode-hook':
|
||||
;;
|
||||
;; (add-hook 'yaml-mode-hook
|
||||
;; '(lambda ()
|
||||
;; (define-key yaml-mode-map "\C-m" 'newline-and-indent)))
|
||||
|
||||
;;; Known Bugs:
|
||||
|
||||
;; YAML is easy to write but complex to parse, and this mode doesn't
|
||||
;; even really try. Indentation and highlighting will break on
|
||||
;; abnormally complicated structures.
|
||||
|
||||
;;; Code:
|
||||
|
||||
|
||||
;; User definable variables
|
||||
|
||||
;;;###autoload
|
||||
(defgroup yaml nil
|
||||
"Support for the YAML serialization format"
|
||||
:group 'languages
|
||||
:prefix "yaml-")
|
||||
|
||||
(defcustom yaml-mode-hook nil
|
||||
"*Hook run by `yaml-mode'."
|
||||
:type 'hook
|
||||
:group 'yaml)
|
||||
|
||||
(defcustom yaml-indent-offset 2
|
||||
"*Amount of offset per level of indentation."
|
||||
:type 'integer
|
||||
:safe 'natnump
|
||||
:group 'yaml)
|
||||
|
||||
(defcustom yaml-backspace-function 'backward-delete-char-untabify
|
||||
"*Function called by `yaml-electric-backspace' when deleting backwards.
|
||||
It will receive one argument, the numeric prefix value."
|
||||
:type 'function
|
||||
:group 'yaml)
|
||||
|
||||
(defcustom yaml-block-literal-search-lines 100
|
||||
"*Maximum number of lines to search for start of block literals."
|
||||
:type 'integer
|
||||
:group 'yaml)
|
||||
|
||||
(defcustom yaml-block-literal-electric-alist
|
||||
'((?| . "") (?> . "-"))
|
||||
"*Characters for which to provide electric behavior.
|
||||
The association list key should be a key code and the associated value
|
||||
should be a string containing additional characters to insert when
|
||||
that key is pressed to begin a block literal."
|
||||
:type 'alist
|
||||
:group 'yaml)
|
||||
|
||||
(defface yaml-tab-face
|
||||
'((((class color)) (:background "red" :foreground "red" :bold t))
|
||||
(t (:reverse-video t)))
|
||||
"Face to use for highlighting tabs in YAML files."
|
||||
:group 'faces
|
||||
:group 'yaml)
|
||||
|
||||
(defcustom yaml-imenu-generic-expression
|
||||
'((nil "^\\(:?[a-zA-Z_-]+\\):" 1))
|
||||
"The imenu regex to parse an outline of the yaml file."
|
||||
:type 'string
|
||||
:group 'yaml)
|
||||
|
||||
|
||||
;; Constants
|
||||
|
||||
(defconst yaml-mode-version "0.0.15" "Version of `yaml-mode'.")
|
||||
|
||||
(defconst yaml-blank-line-re "^ *$"
|
||||
"Regexp matching a line containing only (valid) whitespace.")
|
||||
|
||||
(defconst yaml-directive-re "^\\(?:--- \\)? *%\\(\\w+\\)"
|
||||
"Regexp matching a line contatining a YAML directive.")
|
||||
|
||||
(defconst yaml-document-delimiter-re "^\\(?:---\\|[.][.][.]\\)"
|
||||
"Rexexp matching a YAML document delimiter line.")
|
||||
|
||||
(defconst yaml-node-anchor-alias-re "[&*][a-zA-Z0-9_-]+"
|
||||
"Regexp matching a YAML node anchor or alias.")
|
||||
|
||||
(defconst yaml-tag-re "!!?[^ \n]+"
|
||||
"Rexexp matching a YAML tag.")
|
||||
|
||||
(defconst yaml-bare-scalar-re
|
||||
"\\(?:[^-:,#!\n{\\[ ]\\|[^#!\n{\\[ ]\\S-\\)[^#\n]*?"
|
||||
"Rexexp matching a YAML bare scalar.")
|
||||
|
||||
(defconst yaml-hash-key-re
|
||||
(concat "\\(?:^\\(?:--- \\)?\\|{\\|\\(?:[-,] +\\)+\\) *"
|
||||
"\\(?:" yaml-tag-re " +\\)?"
|
||||
"\\(" yaml-bare-scalar-re "\\) *:"
|
||||
"\\(?: +\\|$\\)")
|
||||
"Regexp matching a single YAML hash key.")
|
||||
|
||||
(defconst yaml-scalar-context-re
|
||||
(concat "\\(?:^\\(?:--- \\)?\\|{\\|\\(?: *[-,] +\\)+\\) *"
|
||||
"\\(?:" yaml-bare-scalar-re " *: \\)?")
|
||||
"Regexp indicating the beginning of a scalar context.")
|
||||
|
||||
(defconst yaml-nested-map-re
|
||||
(concat "[^#\n]*: *\\(?:&.*\\|{ *\\|" yaml-tag-re " *\\)?$")
|
||||
"Regexp matching a line beginning a YAML nested structure.")
|
||||
|
||||
(defconst yaml-block-literal-base-re " *[>|][-+0-9]* *\\(?:\n\\|\\'\\)"
|
||||
"Regexp matching the substring start of a block literal.")
|
||||
|
||||
(defconst yaml-block-literal-re
|
||||
(concat yaml-scalar-context-re
|
||||
"\\(?:" yaml-tag-re "\\)?"
|
||||
yaml-block-literal-base-re)
|
||||
"Regexp matching a line beginning a YAML block literal.")
|
||||
|
||||
(defconst yaml-nested-sequence-re
|
||||
(concat "^\\(?:\\(?: *- +\\)+\\|\\(:? *-$\\)\\)"
|
||||
"\\(?:" yaml-bare-scalar-re " *:\\(?: +.*\\)?\\)?$")
|
||||
"Regexp matching a line containing one or more nested YAML sequences.")
|
||||
|
||||
(defconst yaml-constant-scalars-re
|
||||
(concat "\\(?:^\\|\\(?::\\|-\\|,\\|{\\|\\[\\) +\\) *"
|
||||
(regexp-opt
|
||||
'("~" "null" "Null" "NULL"
|
||||
".nan" ".NaN" ".NAN"
|
||||
".inf" ".Inf" ".INF"
|
||||
"-.inf" "-.Inf" "-.INF"
|
||||
"y" "Y" "yes" "Yes" "YES" "n" "N" "no" "No" "NO"
|
||||
"true" "True" "TRUE" "false" "False" "FALSE"
|
||||
"on" "On" "ON" "off" "Off" "OFF") t)
|
||||
" *$")
|
||||
"Regexp matching certain scalar constants in scalar context.")
|
||||
|
||||
|
||||
;; Mode setup
|
||||
|
||||
(defvar yaml-mode-map
|
||||
(let ((map (make-sparse-keymap)))
|
||||
(define-key map "|" 'yaml-electric-bar-and-angle)
|
||||
(define-key map ">" 'yaml-electric-bar-and-angle)
|
||||
(define-key map "-" 'yaml-electric-dash-and-dot)
|
||||
(define-key map "." 'yaml-electric-dash-and-dot)
|
||||
(define-key map (kbd "DEL") 'yaml-electric-backspace)
|
||||
map)
|
||||
"Keymap used in `yaml-mode' buffers.")
|
||||
|
||||
(defvar yaml-mode-syntax-table
|
||||
(let ((syntax-table (make-syntax-table)))
|
||||
(modify-syntax-entry ?\' "\"" syntax-table)
|
||||
(modify-syntax-entry ?\" "\"" syntax-table)
|
||||
(modify-syntax-entry ?# "<" syntax-table)
|
||||
(modify-syntax-entry ?\n ">" syntax-table)
|
||||
(modify-syntax-entry ?\\ "\\" syntax-table)
|
||||
(modify-syntax-entry ?- "_" syntax-table)
|
||||
(modify-syntax-entry ?_ "_" syntax-table)
|
||||
(modify-syntax-entry ?& "." syntax-table)
|
||||
(modify-syntax-entry ?* "." syntax-table)
|
||||
(modify-syntax-entry ?\( "." syntax-table)
|
||||
(modify-syntax-entry ?\) "." syntax-table)
|
||||
(modify-syntax-entry ?\{ "(}" syntax-table)
|
||||
(modify-syntax-entry ?\} "){" syntax-table)
|
||||
(modify-syntax-entry ?\[ "(]" syntax-table)
|
||||
(modify-syntax-entry ?\] ")[" syntax-table)
|
||||
syntax-table)
|
||||
"Syntax table in use in `yaml-mode' buffers.")
|
||||
|
||||
;;;###autoload
|
||||
(define-derived-mode yaml-mode text-mode "YAML"
|
||||
"Simple mode to edit YAML.
|
||||
|
||||
\\{yaml-mode-map}"
|
||||
:syntax-table yaml-mode-syntax-table
|
||||
(set (make-local-variable 'comment-start) "# ")
|
||||
(set (make-local-variable 'comment-start-skip) "#+ *")
|
||||
(set (make-local-variable 'indent-line-function) 'yaml-indent-line)
|
||||
(set (make-local-variable 'indent-tabs-mode) nil)
|
||||
(set (make-local-variable 'fill-paragraph-function) 'yaml-fill-paragraph)
|
||||
|
||||
(set (make-local-variable 'syntax-propertize-function)
|
||||
'yaml-mode-syntax-propertize-function)
|
||||
(setq font-lock-defaults '(yaml-font-lock-keywords)))
|
||||
|
||||
|
||||
;; Font-lock support
|
||||
|
||||
(defvar yaml-font-lock-keywords
|
||||
`((yaml-font-lock-block-literals 0 font-lock-string-face)
|
||||
(,yaml-constant-scalars-re . (1 font-lock-constant-face))
|
||||
(,yaml-tag-re . (0 font-lock-type-face))
|
||||
(,yaml-node-anchor-alias-re . (0 font-lock-function-name-face))
|
||||
(,yaml-hash-key-re . (1 font-lock-variable-name-face))
|
||||
(,yaml-document-delimiter-re . (0 font-lock-comment-face))
|
||||
(,yaml-directive-re . (1 font-lock-builtin-face))
|
||||
("^[\t]+" 0 'yaml-tab-face t))
|
||||
"Additional expressions to highlight in YAML mode.")
|
||||
|
||||
(defun yaml-mode-syntax-propertize-function (beg end)
|
||||
"Override buffer's syntax table for special syntactic constructs."
|
||||
;; Unhighlight foo#bar tokens between BEG and END.
|
||||
(save-excursion
|
||||
(goto-char beg)
|
||||
(while (search-forward "#" end t)
|
||||
(save-excursion
|
||||
(forward-char -1)
|
||||
;; both ^# and [ \t]# are comments
|
||||
(when (and (not (bolp))
|
||||
(not (memq (preceding-char) '(?\s ?\t))))
|
||||
(put-text-property (point) (1+ (point))
|
||||
'syntax-table (string-to-syntax "_"))))))
|
||||
|
||||
(save-excursion
|
||||
(goto-char beg)
|
||||
(while (and
|
||||
(> end (point))
|
||||
(re-search-forward "['\"]" end t))
|
||||
(when (get-text-property (point) 'yaml-block-literal)
|
||||
(put-text-property (1- (point)) (point)
|
||||
'syntax-table (string-to-syntax "w")))
|
||||
(let* ((pt (point))
|
||||
(sps (save-excursion (syntax-ppss (1- pt)))))
|
||||
(when (not (nth 8 sps))
|
||||
(cond
|
||||
((and (char-equal ?' (char-before (1- pt)))
|
||||
(char-equal ?' (char-before pt)))
|
||||
(put-text-property (- pt 2) pt
|
||||
'syntax-table (string-to-syntax "w"))
|
||||
;; Workaround for https://debbugs.gnu.org/41195.
|
||||
(let ((syntax-propertize--done syntax-propertize--done))
|
||||
;; Carefully invalidate the last cached ppss.
|
||||
(syntax-ppss-flush-cache (- pt 2))))
|
||||
;; If quote is detected as a syntactic string start but appeared
|
||||
;; after a non-whitespace character, then mark it as syntactic word.
|
||||
((and (char-before (1- pt))
|
||||
(char-equal ?w (char-syntax (char-before (1- pt)))))
|
||||
(put-text-property (1- pt) pt
|
||||
'syntax-table (string-to-syntax "w")))
|
||||
(t
|
||||
;; We're right after a quote that opens a string literal.
|
||||
;; Skip over it (big speedup for long JSON strings).
|
||||
(goto-char (1- pt))
|
||||
(condition-case nil
|
||||
(forward-sexp)
|
||||
(scan-error
|
||||
(goto-char end))))))))))
|
||||
|
||||
(defun yaml-font-lock-block-literals (bound)
|
||||
"Find lines within block literals.
|
||||
Find the next line of the first (if any) block literal after point and
|
||||
prior to BOUND. Returns the beginning and end of the block literal
|
||||
line in the match data, as consumed by `font-lock-keywords' matcher
|
||||
functions. The function begins by searching backwards to determine
|
||||
whether or not the current line is within a block literal. This could
|
||||
be time-consuming in large buffers, so the number of lines searched is
|
||||
artificially limited to the value of
|
||||
`yaml-block-literal-search-lines'."
|
||||
(if (eolp) (goto-char (1+ (point))))
|
||||
(unless (or (eobp) (>= (point) bound))
|
||||
(let ((begin (point))
|
||||
(end (min (1+ (point-at-eol)) bound)))
|
||||
(goto-char (point-at-bol))
|
||||
(while (and (looking-at yaml-blank-line-re)
|
||||
(not (bobp)))
|
||||
(forward-line -1))
|
||||
(let ((nlines yaml-block-literal-search-lines)
|
||||
(min-level (current-indentation)))
|
||||
(forward-line -1)
|
||||
(while (and (/= nlines 0)
|
||||
(/= min-level 0)
|
||||
(not (looking-at yaml-block-literal-re))
|
||||
(not (bobp)))
|
||||
(setq nlines (1- nlines))
|
||||
(unless (looking-at yaml-blank-line-re)
|
||||
(setq min-level (min min-level (current-indentation))))
|
||||
(forward-line -1))
|
||||
(when (looking-at-p " *- ")
|
||||
(setq min-level (- min-level 2)))
|
||||
(cond
|
||||
((and (< (current-indentation) min-level)
|
||||
(looking-at yaml-block-literal-re))
|
||||
(goto-char end)
|
||||
(put-text-property begin end 'yaml-block-literal t)
|
||||
(set-match-data (list begin end))
|
||||
t)
|
||||
((progn
|
||||
(goto-char begin)
|
||||
(re-search-forward (concat yaml-block-literal-re
|
||||
" *\\(.*\\)\n")
|
||||
bound t))
|
||||
(let ((range (nthcdr 2 (match-data))))
|
||||
(put-text-property (car range) (cadr range) 'yaml-block-literal t)
|
||||
(set-match-data range))
|
||||
t))))))
|
||||
|
||||
|
||||
;; Indentation and electric keys
|
||||
|
||||
(defun yaml-compute-indentation ()
|
||||
"Calculate the maximum sensible indentation for the current line."
|
||||
(save-excursion
|
||||
(beginning-of-line)
|
||||
(if (looking-at yaml-document-delimiter-re) 0
|
||||
(forward-line -1)
|
||||
(while (and (looking-at yaml-blank-line-re)
|
||||
(> (point) (point-min)))
|
||||
(forward-line -1))
|
||||
(+ (current-indentation)
|
||||
(if (looking-at yaml-nested-map-re) yaml-indent-offset 0)
|
||||
(if (looking-at yaml-nested-sequence-re) yaml-indent-offset 0)
|
||||
(if (looking-at yaml-block-literal-re) yaml-indent-offset 0)))))
|
||||
|
||||
(defun yaml-indent-line ()
|
||||
"Indent the current line.
|
||||
The first time this command is used, the line will be indented to the
|
||||
maximum sensible indentation. Each immediately subsequent usage will
|
||||
back-dent the line by `yaml-indent-offset' spaces. On reaching column
|
||||
0, it will cycle back to the maximum sensible indentation."
|
||||
(interactive "*")
|
||||
(let ((ci (current-indentation))
|
||||
(cc (current-column))
|
||||
(need (yaml-compute-indentation)))
|
||||
(save-excursion
|
||||
(beginning-of-line)
|
||||
(delete-horizontal-space)
|
||||
(if (and (equal last-command this-command) (/= ci 0))
|
||||
(indent-to (* (/ (- ci 1) yaml-indent-offset) yaml-indent-offset))
|
||||
(indent-to need)))
|
||||
(if (< (current-column) (current-indentation))
|
||||
(forward-to-indentation 0))))
|
||||
|
||||
(defun yaml-electric-backspace (arg)
|
||||
"Delete characters or back-dent the current line.
|
||||
If invoked following only whitespace on a line, will back-dent to the
|
||||
immediately previous multiple of `yaml-indent-offset' spaces."
|
||||
(interactive "*p")
|
||||
(if (or (/= (current-indentation) (current-column)) (bolp))
|
||||
(funcall yaml-backspace-function arg)
|
||||
(let ((ci (current-column)))
|
||||
(beginning-of-line)
|
||||
(delete-horizontal-space)
|
||||
(indent-to (* (/ (- ci (* arg yaml-indent-offset))
|
||||
yaml-indent-offset)
|
||||
yaml-indent-offset)))))
|
||||
|
||||
(defun yaml-electric-bar-and-angle (arg)
|
||||
"Insert the bound key and possibly begin a block literal.
|
||||
Inserts the bound key. If inserting the bound key causes the current
|
||||
line to match the initial line of a block literal, then inserts the
|
||||
matching string from `yaml-block-literal-electric-alist', a newline,
|
||||
and indents appropriately."
|
||||
(interactive "*P")
|
||||
(self-insert-command (prefix-numeric-value arg))
|
||||
(let ((extra-chars
|
||||
(assoc last-command-event
|
||||
yaml-block-literal-electric-alist)))
|
||||
(cond
|
||||
((and extra-chars (not arg) (eolp)
|
||||
(save-excursion
|
||||
(beginning-of-line)
|
||||
(looking-at yaml-block-literal-re)))
|
||||
(insert (cdr extra-chars))
|
||||
(newline-and-indent)))))
|
||||
|
||||
(defun yaml-electric-dash-and-dot (arg)
|
||||
"Insert the bound key and possibly de-dent line.
|
||||
Inserts the bound key. If inserting the bound key causes the current
|
||||
line to match a document delimiter, de-dent the line to the left
|
||||
margin."
|
||||
(interactive "*P")
|
||||
(self-insert-command (prefix-numeric-value arg))
|
||||
(save-excursion
|
||||
(beginning-of-line)
|
||||
(when (and (not arg) (looking-at yaml-document-delimiter-re))
|
||||
(delete-horizontal-space))))
|
||||
|
||||
(defun yaml-narrow-to-block-literal ()
|
||||
"Narrow the buffer to block literal if the point is in it,
|
||||
otherwise do nothing."
|
||||
(interactive)
|
||||
(save-excursion
|
||||
(goto-char (point-at-bol))
|
||||
(while (and (looking-at-p yaml-blank-line-re) (not (bobp)))
|
||||
(forward-line -1))
|
||||
(let ((nlines yaml-block-literal-search-lines)
|
||||
(min-level (current-indentation))
|
||||
beg)
|
||||
(forward-line -1)
|
||||
(while (and (/= nlines 0)
|
||||
(/= min-level 0)
|
||||
(not (looking-at-p yaml-block-literal-re))
|
||||
(not (bobp)))
|
||||
(setq nlines (1- nlines))
|
||||
(unless (looking-at-p yaml-blank-line-re)
|
||||
(setq min-level (min min-level (current-indentation))))
|
||||
(forward-line -1))
|
||||
(when (and (< (current-indentation) min-level)
|
||||
(looking-at-p yaml-block-literal-re))
|
||||
(setq min-level (current-indentation))
|
||||
(forward-line)
|
||||
(setq beg (point))
|
||||
(while (and (not (eobp))
|
||||
(or (looking-at-p yaml-blank-line-re)
|
||||
(> (current-indentation) min-level)))
|
||||
(forward-line))
|
||||
(narrow-to-region beg (point))))))
|
||||
|
||||
(defun yaml-fill-paragraph (&optional justify region)
|
||||
"Fill paragraph.
|
||||
Outside of comments, this behaves as `fill-paragraph' except that
|
||||
filling does not cross boundaries of block literals. Inside comments,
|
||||
this will do usual adaptive fill behaviors."
|
||||
(interactive "*P")
|
||||
(save-restriction
|
||||
(yaml-narrow-to-block-literal)
|
||||
(let ((fill-paragraph-function nil))
|
||||
(or (fill-comment-paragraph justify)
|
||||
(fill-paragraph justify region)))))
|
||||
|
||||
(defun yaml-set-imenu-generic-expression ()
|
||||
(make-local-variable 'imenu-generic-expression)
|
||||
(make-local-variable 'imenu-create-index-function)
|
||||
(setq imenu-create-index-function 'imenu-default-create-index-function)
|
||||
(setq imenu-generic-expression yaml-imenu-generic-expression))
|
||||
|
||||
(add-hook 'yaml-mode-hook 'yaml-set-imenu-generic-expression)
|
||||
|
||||
|
||||
(defun yaml-mode-version ()
|
||||
"Display version of `yaml-mode'."
|
||||
(interactive)
|
||||
(message "yaml-mode %s" yaml-mode-version)
|
||||
yaml-mode-version)
|
||||
|
||||
;;;###autoload
|
||||
(add-to-list 'auto-mode-alist '("\\.\\(e?ya?\\|ra\\)ml\\'" . yaml-mode))
|
||||
|
||||
(provide 'yaml-mode)
|
||||
|
||||
;;; yaml-mode.el ends here
|
Binary file not shown.
|
@ -37,7 +37,8 @@
|
|||
;;(set-default-font "Meslo LG L DZ Regular for Powerline")
|
||||
;;(set-default-font "DejaVu Sans Mono for Powerline")
|
||||
;;(set-default-font "Go Mono for Powerline")
|
||||
(set-default-font "Iosevka Medium")
|
||||
;;(set-default-font "DejaVu Sans Mono")
|
||||
(set-frame-font "DejaVu Sans Mono" nil t)
|
||||
(set-face-attribute 'default nil :height 100))
|
||||
|
||||
;; Load path for plugins
|
||||
|
|
Loading…
Reference in New Issue