[Lunar-commits] CVS: moonbase/editors/nano nanorc, NONE, 1.1 BUILD, 1.2, 1.3

Jon South striker at lunar-linux.org
Wed May 26 16:47:57 GMT 2004


Update of /var/cvs/lunar/moonbase/editors/nano
In directory dbguin.lunar-linux.org:/tmp/cvs-serv20153

Modified Files:
	BUILD 
Added Files:
	nanorc 
Log Message:
sample nanorc file for everyone's enjoyment


--- NEW FILE: nanorc ---
## Sample initialization file for GNU nano
## Please note that you must have configured nano with --enable-nanorc
## for this file to be read!  Also note that characters specially
## interpreted by the shell should not be escaped here.
##
## To make sure a value is not enabled, use "unset <option>"
##
## For the options that take parameters, the default value is given.
## Other options are unset by default.

## Use auto-indentation
# set autoindent

## Backup files to filename~
# set backup

## Constantly display the cursor position in the status bar.
set const

## Use cut to end of line with ^K by default
# set cut

## Set the line length for wrapping text and justifying paragraphs.
## If fill is negative, the line length will be the screen width less
## this number.
##
# set fill -8

## Enable ~/.nano_history for saving and reading search/replace strings.
set historylog

## Use alternate keypad routines
# set keypad

## Allow multiple file buffers (using ^R inserts into separate buffer).
## You must have configured with --enable-multibuffer or --enable-extra
## for this to work.
##
set multibuffer

## Don't convert files from DOS/Mac format
# set noconvert

## Don't follow symlinks when writing files
# set nofollow

## Don't display the help lists at the bottom of the screen
set nohelp

## Don't wrap text at all
set nowrap

## Set operating directory.  nano will not read or write files outside
## this directory and its subdirectories.  Also, the current directory
## is changed to here, so files are inserted from this dir.  A blank
## string means the operating directory feature is turned off.
##
# set operatingdir ""

## Preserve the XON and XOFF keys (^Q and ^S)
# set preserve

## The email-quote string, used to justify email-quoted paragraphs.
## This is an extended regular expression if your system supports them,
## otherwise a literal string.  Default:
# set quotestr "^([ 	]*[\|>:}#])+"
## if you have regexps, otherwise:
# set quotestr "> "
## You can get old nano quoted-justify behavior via:
# set quotestr "(> )+"

## Do extended regular expression searches by default 
# set regexp

## Use smooth scrolling as the default
set smooth

## Use this spelling checker instead of the internal one.  This option
## does not properly have a default value.
##
set speller "aspell -c"

## Allow nano to be suspended with ^Z
# set suspend

## Use this tab size instead of the default; it must be greater than 0
set tabsize 8

## Save automatically on exit, don't prompt
# set tempfile

## Enable ~/.nano_history for saving and reading search/replace strings.
set historylog

## Disallow file modification, why would you want this in an rc file? ;)
# set view

## Color setup
## Format:
## syntax "short description" ["filename regex" ...]
## color foreground,background "regex" ["regex"...]
##
## Legal colors: white, black, red, blue, green, yellow, magenta, cyan.
## You may use the prefix "bright" to mean a stronger color highlight.
##
## To use multi-line regexes use the start="regex" end="regex" format.
##
## If your system supports transparency, not specifying a background
## color will use a transparent color.  If you don't want this, be sure
## to set the background color to black or white.

## C/++ Source
##
syntax "c-file" "\.(c|h|cpp|cc|hh|cs)$"
color red "\<[A-Z_]{2,}\>" 
color green "\<(float|char|int|void|static|const|struct)\>" 
color brightyellow "\<(if|while|do|else|case|switch)\>"
color brightcyan "^#( 	)*(define|include|ifn?def|endif|elif|else|if)" 
##
## You will in general want your comments and strings to come last,
## because syntax highlighting rules will be applied in the order they
## are read in.
##
color brightyellow "<[^= 	]*>" ""(\\.|[^\"])*""
##
## This string is VERY resource intensive!!!
# color brightyellow start=""(\\.|[^\"])*\\( |	)*$" end="^(\\.|[^\"])*""
##
## And we want to have some nice comment highlighting too
color brightblack "//.*"
color brightblack start="/\*" end="\*/"

## Here is a short example for HTML
syntax "HTML" "\.(s|)htm(l|)$"
color brightyellow start="<" end=">"
color brightred "<[^> 	]*"
color brightblue "<" ">"
color brightmagenta "&[^;[:space:]]*;"
color brightgreen "(ht|f)tp(s|)://[-a-zA-Z0-9]*\.[-a-zA-Z]{3}([^"[:space:]]*|)"
color brightblack start="<!-- " end=" -->"

syntax "PHP" "\.ph(p|tml)(3|4|)$"
# HTML Stuff
color brightyellow start="<" end=">"
color brightred "<[^> 	]*"
color brightblue "<" ">"
color brightmagenta "&[^;[:space:]]*;"
color brightgreen "(ht|f)tp(s|)://[-a-zA-Z0-9]*\.[-a-zA-Z]{3}([^"[:space:]]*|)"
color brightblack start="<!-- " end=" -->"
# PHP Tags
color brightblue "<\?php" "\?>"

## TeX files
syntax "TeX" "\.tex$"
color green "\\.|\\[A-Za-z]*"
color magenta "[{}]"
color blue "%.*"

## Quoted emails (under e.g. mutt)
syntax "mutt"
color green "^>.*"

## groff
##
syntax "groff" "\.ms$" "\.mm$" "\.me$" "\.tmac$" "^tmac." ".rof"
# The argument of .nr or .ds
color cyan "^\.ds [^ ]*"
color cyan "^\.nr [^ ]*"
# Single character escapes
color brightmagenta "\\."
# Highlight the argument of \f or \s in the same color
color brightmagenta "\\f."
color brightmagenta "\\f\(.."
color brightmagenta "\\s(\+|\-)?[0-9]"
# \n
color cyan "(\\|\\\\)n."
color cyan "(\\|\\\\)n\(.."
color cyan start="(\\|\\\\)n\[" end="]"
# Requests
color brightgreen "^\. *[^ ]*"
# Comments
color yellow "^\.\\\".*$"
# Strings
color green "(\\|\\\\)\*."
color green "(\\|\\\\)\*\(.."
color green start="(\\|\\\\)\*\[" end="]"
# Characters
color brightred "\\\(.."
color brightred start="\\\[" end="]"
# Macro arguments
color brightcyan "\\\\\$[1-9]"

## perl
##
syntax "perl" "\.p[lm]$"
color red "\<(accept|alarm|atan2|bin(d|mode)|c(aller|h(dir|mod|op|own|root)|lose(dir)?|onnect|os|rypt)|d(bm(close|open)|efined|elete|ie|o|ump)|e(ach|of|val|x(ec|ists|it|p))|f(cntl|ileno|lock|ork)|get(c|login|peername|pgrp|ppid|priority|pwnam|(host|net|proto|serv)byname|pwuid|grgid|(host|net)byaddr|protobynumber|servbyport)|([gs]et|end)(pw|gr|host|net|proto|serv)ent|getsock(name|opt)|gmtime|goto|grep|hex|index|int|ioctl|join|keys|kill|last|length|link|listen|local(time)?|log|lstat|m|mkdir|msg(ctl|get|snd|rcv)|next|oct|open(dir)?|ord|pack|pipe|pop|printf?|push|q|qq|qx|rand|re(ad(dir|link)?|cv|do|name|quire|set|turn|verse|winddir)|rindex|rmdir|s|scalar|seek|seekdir|se(lect|mctl|mget|mop|nd|tpgrp|tpriority|tsockopt)|shift|shm(ctl|get|read|write)|shutdown|sin|sleep|socket(pair)?|sort|spli(ce|t)|sprintf|sqrt|srand|stat|study|substr|symlink|sys(call|read|tem|write)|tell(dir)?|time|tr|y|truncate|umask|un(def|link|pack|shift)|utime|values|vec|wait(pid)?|wantarray|warn|write)\>"
color magenta "\<(continue|else|elsif|do|for|foreach|if|unless|until|while|eq|ne|lt|gt|le|ge|cmp|x|my|sub|use|package|can|isa)\>"
color cyan start="[$@%]" end="( |\\W|-)"
color yellow "".*"|qq\|.*\|"
color white "[sm]/.*/"
color white start="(^use| = new)" end=";"
color green "#.*"
color yellow start="<< 'STOP'" end="STOP"

## Java source
##
syntax "Java source" "\.java$"
color green "\<(boolean|byte|char|double|float|int|long|new|short|this|transient|void)\>"
color red "\<(break|case|catch|continue|default|do|else|finally|for|if|return|switch|throw|try|while)\>"
color cyan "\<(abstract|class|extends|final|implements|import|instanceof|interface|native|package|private|protected|public|static|strictfp|super|synchronized|throws|volatile)\>"
color red ""[^\"]*""
color yellow "\<(true|false|null)\>"
color blue "//.*"
color blue start="/\*" end="\*/"
color brightblue start="/\*\*" end="\*/"
color brightgreen,brightgreen "[ 	]+$"

## Patch files
##
syntax "patch" "\.(patch|diff)$"
color brightgreen "^\+.*"
color green "^\+\+\+.*"
color brightblue "^ .*"
color brightred "^-.*"
color red "^---.*"
color brightyellow "^@@.*"
color magenta "^diff.*"

## /etc/nanorc and ~/.nanorc
##
syntax "nanorc" "[\.]*nanorc$"
color white "^ *(set|unset).*$"
color cyan "^ *(set|unset) (autoindent|backup|const|cut|fill|keypad|multibuffer|noconvert|nofollow|nohelp|nowrap|operatingdir|preserve|quotestr|regexp|smooth|speller|suspend|tabsize|tempfile|historylog|view)"
color brightwhite "^ *syntax \"[^\"]*\""
color brightblue "^ *set\>" "^ *unset\>" "^ *syntax\>"
color brightmagenta "^ *color (bright)?(white|black|red|blue|green|yellow|magenta|cyan)\>"
color magenta "^ *color\>"
color brightblack "^#.*$"

## shell scripts and lunar-linux special files
##
syntax "lunar-sh" "^(DETAILS|CONFIGURE|CONFLICTS|PRE_BUILD|BUILD|POST_BUILD|POST_INSTALL|POST_REMOVE|.*\.lunar|lin|lrm|lget|lunar|.*\.sh)$"
color green "\<(case|do|done|elif|else|esac|exit|fi|for|function|if|in|local|read|return|select|shift|then|time|until|while)\>"
color green "-(e|d|f|r|g|u|w|x|L)\>"
color green "-(eq|ne|gt|lt|ge|le|s|n|z)\>"
color brightblue "\<make\>" "\<(bzip2|cat|cd|chmod|chown|cp|echo|egrep|env|export|find|fgrep|grep|install|let|ln|ls|mkdir|mount|mv|rm|sed|set|tar|touch|umask|umount|unset)\>"
color brightmagenta "\<(lin|lrm|lvu|lget|lunar)\>"
color brightmagenta "\<(activate_voyeur|activity_log|add_depends|add_module|add_priv_user|add_queue|functionin_queue|backup_mods_krnl|bad_flags|boost|boost_locked|build_depends|build_module_depends|call_wget|check_blacklist|check_module_index|check_status_files|color|conflicts|connect|create_depends_cache|functiondepends|functionoptional_depends|functionmessage|create_install_cache|create_install_log|create_md5sum_log|create_module_index|create_uniq_id|current_locked|debug_msg|default_build|default_config|default_cpan_build|default_cpan_pre_build|default_cvs_build|default_cvs_config|default_make|default_post_build|default_pre_build|devoke_installwatch|directories|dirnames|disconnect|display_moonbase_changes|display_success_info|display_update_log|download_module|edit_file|enviro_check|erase|error_message)\>"
color brightmagenta "\<(exile_modules|exists|export_ld|files|filter|find_check|find_depends|functionfind_depends_intern|find_module_size|functionmodule_size|find_pam_aware|find_section|fix_depends|fuzzy_wget|gather_docs|get_config|get_cpan|get_cvs|get_local_config|get_module_config|get_moonbase|functionrun_details|get_moonbase_md5|get_other_module_config|get_svn|get_url|gpg_verify_source|guess_filename|hold_modules|in_depends|install_bashmisc|install_initd|install_pam_confs|install_services|install_xinetd_confs|installed_version|invoke_installwatch|is_depends|ldd_check|lget_lock|lget_locked|lget_unlock|lin_locked|lin_module|list_expired_modules|list_installed|list_modules|list_moonbase|list_sections|lock_file|functionfile_lock|md5_verify_source)\>"
color brightmagenta "\<(md5sum_check|message|mk_source_dir|mod_v_safe_edit|module_exiled|module_held|module_installed|module_needs_update|module_version|optimize|optimize_addon|optimize_architecture|optimize_base|optimize_ccc_warn|optimize_cpu|optimize_extra|optimize_fp|optimize_ld|optimize_make|optimize_speed|optimize_stack|parse_iw|patch_it|prepare_depends_status|prepare_install|prepare_module_config|prune|purge_modules|push_install_queue|push_remove_queue|push_uniq_id|query|rebuild|rebuild_status_files|release_saved_libraries|remove_depends|remove_line|remove_module|remove_queue|renew|replace_status_file|report|resurrect|resurrect_modules|rework_module|functionoptional_depends|functiondepends|functionrun_depends|rm_source_dir|root_check|run_build|run_checks)\>"
color brightmagenta "\<(run_configure|run_conflicts|run_depends|functiondepends|functionoptional_depends|run_details|run_fix|run_module_file|run_post_build|run_post_install|run_pre_build|satisfy_depends|save_libraries|sedit|set_config|set_local_config|set_module_config|set_moonbase_md5|set_priority|show_download_progress|show_downloading|show_fancy_progress|solo_locked|sort_by_dependency|sound|sources|start_logging|stop_logging|sym_check|symlinks|syms_not_owned|temp_create|temp_destroy|testpack|unexile_modules|unhold_modules|unlock_file|unpack|update|update_aboot|update_grub|update_lilo|update_modules|use_initd|use_wrappers|use_xinetd|validate_source_dir|verbose_msg|verify_all_sources|verify_source|view_file|xterm_msg)\>"
color brightmagenta "(/dev[^ ]*|/proc[^ ]*)"
color brightgreen "^[a-zA-Z_0-9]+\(\)"
color brightred "\$\{?[a-zA-Z_0-9]+\}?"
color brightred "^[[:space:]]*\<[a-zA-Z_0-9]{2,}\>[[:space:]]*="
color brightred "^[[:space:]]*\<[a-zA-Z_0-9]{2,}\>\["
color brightgreen "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|&|@|~|=|\|)"
color brightyellow ""(\\.|[^\"])*"" "'(\\.|[^'])*'"
color green start=" << EOF" end="EOF"
color brightblack "^[[:space:]]*#.*$"

Index: BUILD
===================================================================
RCS file: /var/cvs/lunar/moonbase/editors/nano/BUILD,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- BUILD	18 Feb 2004 11:49:33 -0000	1.2
+++ BUILD	26 May 2004 16:47:55 -0000	1.3
@@ -11,7 +11,8 @@
     OPTS="$OPTS --enable-multibuffer"
    fi
   
-  default_build
+  default_build						&&
+  install -m 0644 $SCRIPT_DIRECTORY/nanorc /etc/
 
 ) > $C_FIFO 2>&1
 



More information about the Lunar-commits mailing list