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.

122 lines
4.5 KiB

  1. ;;; polymode-base.el --- Root Host and Polymode Configuration Objects -*- lexical-binding: t -*-
  2. ;;
  3. ;; Copyright (C) 2013-2019, Vitalie Spinu
  4. ;; Author: Vitalie Spinu
  5. ;; URL: https://github.com/polymode/polymode
  6. ;;
  7. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  8. ;;
  9. ;; This file is *NOT* part of GNU Emacs.
  10. ;;
  11. ;; This program is free software; you can redistribute it and/or
  12. ;; modify it under the terms of the GNU General Public License as
  13. ;; published by the Free Software Foundation; either version 3, or
  14. ;; (at your option) any later version.
  15. ;;
  16. ;; This program is distributed in the hope that it will be useful,
  17. ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  19. ;; General Public License for more details.
  20. ;;
  21. ;; You should have received a copy of the GNU General Public License
  22. ;; along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>.
  23. ;;
  24. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  25. ;;
  26. ;;; Commentary:
  27. ;;
  28. ;;; Code:
  29. (require 'polymode-core)
  30. ;; HOST MODES
  31. (define-obsolete-variable-alias 'pm-host/ada 'poly-ada-hostmode "v0.2")
  32. (define-hostmode poly-ada-hostmode :mode 'ada-mode)
  33. (define-obsolete-variable-alias 'pm-host/coffee 'poly-coffee-hostmode "v0.2")
  34. (define-hostmode poly-coffee-hostmode :mode 'coffee-mode)
  35. (define-obsolete-variable-alias 'pm-host/emacs-lisp 'poly-emacs-lisp-hostmode "v0.2")
  36. (define-hostmode poly-emacs-lisp-hostmode :mode 'emacs-lisp-mode)
  37. (define-obsolete-variable-alias 'pm-host/fundamental 'poly-fundamental-hostmode "v0.2")
  38. (define-hostmode poly-fundamental-hostmode :mode 'fundamental-mode)
  39. (define-obsolete-variable-alias 'pm-host/java 'poly-java-hostmode "v0.2")
  40. (define-hostmode poly-java-hostmode :mode 'java-mode)
  41. (define-obsolete-variable-alias 'pm-host/js 'poly-js-hostmode "v0.2")
  42. (define-hostmode poly-js-hostmode :mode 'js-mode)
  43. (define-obsolete-variable-alias 'pm-host/latex 'poly-latex-hostmode "v0.2")
  44. (define-hostmode poly-latex-hostmode :mode 'latex-mode)
  45. (define-obsolete-variable-alias 'pm-host/html 'poly-html-hostmode "v0.2")
  46. (define-hostmode poly-html-hostmode
  47. :mode 'html-mode
  48. :indent-offset 'sgml-basic-offset
  49. :protect-font-lock nil
  50. :protect-syntax t)
  51. (define-obsolete-variable-alias 'pm-host/R 'poly-R-hostmode "v0.2")
  52. (define-hostmode poly-R-hostmode :mode 'R-mode)
  53. (define-obsolete-variable-alias 'pm-host/perl 'poly-perl-hostmode "v0.2")
  54. (define-hostmode poly-perl-hostmode :mode 'perl-mode)
  55. (define-obsolete-variable-alias 'pm-host/ruby 'poly-ruby-hostmode "v0.2")
  56. (define-hostmode poly-ruby-hostmode :mode 'ruby-mode)
  57. (define-obsolete-variable-alias 'pm-host/pascal 'poly-pascal-hostmode "v0.2")
  58. (define-hostmode poly-pascal-hostmode :mode 'pascal-mode)
  59. (define-obsolete-variable-alias 'pm-host/C++ 'poly-c++-hostmode "v0.2")
  60. (define-hostmode poly-c++-hostmode :mode 'C++-mode :protect-font-lock nil)
  61. (define-obsolete-variable-alias 'pm-host/sgml 'poly-sgml-hostmode "v0.2")
  62. (define-hostmode poly-sgml-hostmode :mode 'sgml-mode)
  63. (define-obsolete-variable-alias 'pm-host/text 'poly-text-hostmode "v0.2")
  64. (define-hostmode poly-text-hostmode :mode 'text-mode)
  65. (define-obsolete-variable-alias 'pm-host/yaml 'poly-yaml-hostmode "v0.2")
  66. (define-hostmode poly-yaml-hostmode :mode 'yaml-mode)
  67. ;;; ROOT POLYMODES
  68. ;; These are simple generic configuration objects. More specialized polymodes
  69. ;; should clone these.
  70. (define-obsolete-variable-alias 'pm-poly/brew 'poly-brew-root-polymode "v0.2")
  71. (defvar poly-brew-root-polymode
  72. (pm-polymode :name "brew-root" :hostmode 'poly-text-hostmode)
  73. "Brew root configuration.")
  74. (define-obsolete-variable-alias 'pm-poly/html 'poly-html-root-polymode "v0.2")
  75. (defvar poly-html-root-polymode
  76. (pm-polymode :name "html-root" :hostmode 'poly-html-hostmode)
  77. "HTML root configuration.")
  78. (define-obsolete-variable-alias 'pm-poly/C++ 'poly-c++-root-polymode "v0.2")
  79. (defvar poly-c++-root-polymode
  80. (pm-polymode :name "c++-root" :hostmode 'poly-c++-hostmode)
  81. "C++ root configuration.")
  82. (define-obsolete-variable-alias 'pm-poly/latex 'poly-latex-root-polymode "v0.2")
  83. (defvar poly-latex-root-polymode
  84. (pm-polymode :name "latex-root" :hostmode 'poly-latex-hostmode)
  85. "LaTeX root configuration.")
  86. (defvar poly-js-root-polymode
  87. (pm-polymode :name "js-root" :hostmode 'poly-js-hostmode)
  88. "JS root polymode.")
  89. (defvar poly-coffee-root-polymode
  90. (pm-polymode :name "coffee-root" :hostmode 'poly-coffee-hostmode)
  91. "JS root polymode.")
  92. (provide 'polymode-base)
  93. ;;; polymode-base.el ends here