emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/webpaste c091dab 146/298: Change some types based on actua


From: ELPA Syncer
Subject: [nongnu] elpa/webpaste c091dab 146/298: Change some types based on actual use
Date: Thu, 9 Dec 2021 19:00:02 -0500 (EST)

branch: elpa/webpaste
commit c091daba87002a199e6379f381464561b0ee3804
Author: Elis Axelsson <elis.axelsson@gmail.com>
Commit: Elis Axelsson <elis.axelsson@gmail.com>

    Change some types based on actual use
---
 webpaste.el | 32 ++++++++++++++++----------------
 1 file changed, 16 insertions(+), 16 deletions(-)

diff --git a/webpaste.el b/webpaste.el
index 2517971..d542f43 100644
--- a/webpaste.el
+++ b/webpaste.el
@@ -54,24 +54,11 @@ default to all providers in order defined in 
‘webpaste-providers’ list."
   :type '(repeat string))
 
 
-(defcustom webpaste/default-lang-alist
-  '((css-mode . "css")
-    (fundamental-mode . "text")
-    (html-mode . "html")
-    (java-mode . "java")
-    (js-mode . "js")
-    (go-mode . "go")
-    (php-mode . "php")
-    (python-mode . "python")
-    (yaml-mode . "yaml"))
-  "Alist that maps `major-mode' names to language names."
-  :type '(alist :key-type symbol :value-type string))
-
-
 (defcustom webpaste/paste-confirmation nil
   "Prompt for a yes/no confirmation before attempting to paste a region or 
buffer."
   :group 'webpaste)
 
+
 
 (defvar webpaste/tested-providers ()
   "Variable for storing which providers to try in which order while running.
@@ -91,7 +78,20 @@ some providers want to append the language to the resulting 
URL.")
 This list will be populated when you add providers to have the languages
 precalculated, and also available both for pre and post request access.")
 
-
+
+(defvar webpaste/default-lang-alist
+  '((css-mode . "css")
+    (fundamental-mode . "text")
+    (html-mode . "html")
+    (java-mode . "java")
+    (js-mode . "js")
+    (go-mode . "go")
+    (php-mode . "php")
+    (python-mode . "python")
+    (yaml-mode . "yaml"))
+  "Alist that maps `major-mode' names to language names."
+  :type '(alist :key-type symbol :value-type string))
+
 
 ;;; Predefined error lambda for providers
 (defvar webpaste/providers-error-lambda
@@ -263,7 +263,7 @@ Optional params:
 
 
 ;;; Define providers
-(defcustom webpaste-providers-alist
+(defvar webpaste-providers-alist
   `(("ptpb.pw"
      ,(webpaste-provider
        :uri "https://ptpb.pw/";



reply via email to

[Prev in Thread] Current Thread [Next in Thread]