Commits

Dương Nguyễn committed d701199 Draft

Rename default_params -> default_config

Comments (0)

Files changed (4)

 
     Settings.update(ahashtable)
 
-See `./src/default_params.rb` for more details.
+See `./src/default_config.rb` for more details.
 
 ######
 

src/default_config.rb

+# encoding: UTF-8
+
+#
+# This file is a part of Espada project.
+#
+# Copyright (C) 2013 Nguyễn Hà Dương <cmpitgATgmaildotcom>
+#
+# Espada 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 3 of the License, or
+# (at your option) any later version.
+#
+# Espada 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 Espada.  If not, see <http://www.gnu.org/licenses/>.
+#
+
+require 'espada_gui'
+
+EspadaSettings = {
+  :normal_text_font => Font.new("Monaco", 10, Font::Normal),
+  :wrap_mode => WrapMode[:WidgetWidth],
+  :wrap_column => 78,
+}
+
+EspadaSession = {
+  :size => {
+    :width => 800,
+    :height => 600
+  },
+
+  :position => {
+    :x => 130,
+    :y => 70
+  },
+
+  :default_contents_path => "../tests/Default_Contents.txt",
+}
+
+EspadaDefaultKeybindings = [
+  {
+    :keys    => "<ctrl> p",
+    :action  => Proc.new { goto_file_or_eval }
+  },
+  {
+    :keys    => "<ctrl> s",
+    :action  => Proc.new { save }
+  },
+  {
+    :keys    => "<ctrl> <shift> s",
+    :action  => Proc.new { save_as }
+  },
+  {
+    :keys    => "<super> c",
+    :action  => Proc.new { prev_line }
+  },
+]

src/default_params.rb

-# encoding: UTF-8
-
-#
-# This file is a part of Espada project.
-#
-# Copyright (C) 2013 Nguyễn Hà Dương <cmpitgATgmaildotcom>
-#
-# Espada 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 3 of the License, or
-# (at your option) any later version.
-#
-# Espada 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 Espada.  If not, see <http://www.gnu.org/licenses/>.
-#
-
-require 'espada_gui'
-
-EspadaSettings = {
-  :normal_text_font => Font.new("Monaco", 10, Font::Normal),
-  :wrap_mode => WrapMode[:WidgetWidth],
-  :wrap_column => 78,
-}
-
-EspadaSession = {
-  :size => {
-    :width => 800,
-    :height => 600
-  },
-
-  :position => {
-    :x => 130,
-    :y => 70
-  },
-
-  :default_contents_path => "../tests/Default_Contents.txt",
-}
-
-EspadaDefaultKeybindings = [
-  {
-    :keys    => "<ctrl> p",
-    :action  => Proc.new { goto_file_or_eval }
-  },
-  {
-    :keys    => "<ctrl> s",
-    :action  => Proc.new { save }
-  },
-  {
-    :keys    => "<ctrl> <shift> s",
-    :action  => Proc.new { save_as }
-  },
-  {
-    :keys    => "<super> c",
-    :action  => Proc.new { prev_line }
-  },
-]
 require 'espada_session'
 require 'espada_utils'
 
-require 'default_params'
+require 'default_config'
 
 ESPADA_PATH = current_executing_dir __FILE__