Skip to content

Commit

Permalink
NetBeans key binding export, Java parameters and simple theming for t…
Browse files Browse the repository at this point in the history
…he Kod editor.
  • Loading branch information
rkk committed Mar 28, 2012
1 parent 7e5249d commit 9bc59f7
Show file tree
Hide file tree
Showing 4 changed files with 228 additions and 0 deletions.
83 changes: 83 additions & 0 deletions Kod/default.css
@@ -0,0 +1,83 @@
/*
* This is the default style of Kod. If you wish to modify this to your liking,
* make a copy and put it in ~/.kod/mystyle.css then tell Kod where to find it
* by setting a configuration key:
*
* $ defaults write se.hunch.kod style/url ~/.kod/mystyle.css
*
* You might need to restart Kod for changes to take effect. Then, simply open
* your ~/.kod/mystyle.css in Kod -- when edited and saved Kod will
* automatically reload the style, thus you see the effect of your alterations.
*/
body {
font-family: "M+ 1m", monospace;
font-size: 18px;
background-color:#222;
color: #eee;
}

/* color of the caret and selection range */
caret { color: #ff3319; }
selection { background-color: #2F3F52; }

/* the color for context lines (when specified with line ranges) */
metaruler {
color: #666;
background: #333;
border-right: 2px solid #444;
font-size: 11px;
}

keyword { color: #66c8ef; }
type { color: lightsalmon; }
usertype { color: #CAC059; }
classname { color: #eb7962; }
string { color:#9aca7e; background-color:#212A24; }
specialchar { color: #C0D164; background-color:#2B2F26; }
regexp { color: #FFB14B; background-color:#342C22; }
comment { color: #666; font-style: italic; }
number { color: #C969B6; }
preproc { color: #9C8B7C; }
symbol { color: #A19DBF; }
function { color: #85FFDF; background-color: #1F2B31; }
cbracket { color: #ddd; }
todo { color: #946B57; font-weight: bold; }

/* Internet related */
url {
color: #77B5FF; text-decoration: underline;
cursor: pointer;
}

/* other elements for ChangeLog and Log files */
date { color: #F09C9F; font-weight: bold; }
time, file { color: #A78AB0; font-weight: bold; }
ip, name { color: #8CB194; }

/* for Prolog, Perl, lang */
variable { color: #cda869; }
italics { text-decoration: underline; font-style: italic; }
bold { color: #fff; font-weight: bold; }

/* for LaTeX, markdown, etc */
underline { color: #3C7E5B; text-decoration: underline; }
fixed { color: #bbeecc; background-color: #2c2c2c; }
argument, optionalargument { color: #9194BB; }
math { color: orange; }
bibtex { color: #8D86EE; }
h1,h2,h3,h4,h5,h6 { color: lightsalmon; }
ul, ol { color: yellow; }

/* for diffs */
oldfile { color: #f7bfb6; background-color:#42201C; }
newfile { color: #cff7bf; background-color:#13340C; }
difflines { color: white; background-color:#3D96DE; }

/* for css */
selector { color: #cda869; }
property { color: #c4af75; }
value { color: #f9ed97; }

/* for Oz, Erlang, etc */
atom { color: orange; }
meta { font-style: italic; }
26 changes: 26 additions & 0 deletions NetBeans/AppSettings/netbeans.conf
@@ -0,0 +1,26 @@
# ${HOME} will be replaced by JVM user.home system property
netbeans_default_userdir="${HOME}/.netbeans/7.0"

# Options used by NetBeans launcher by default, can be overridden by explicit
# command line switches:
netbeans_default_options="-J-client -J-Xss2m -J-Xms32m -J-XX:PermSize=32m -J-XX:MaxPermSize=384m -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true"
# Note that a default -Xmx is selected for you automatically.
# You can find this value in var/log/messages.log file in your userdir.
# The automatically selected value can be overridden by specifying -J-Xmx here
# or on the command line.

# If you specify the heap size (-Xmx) explicitly, you may also want to enable
# Concurrent Mark & Sweep garbage collector. In such case add the following
# options to the netbeans_default_options:
# -J-XX:+UseConcMarkSweepGC -J-XX:+CMSClassUnloadingEnabled -J-XX:+CMSPermGenSweepingEnabled
# (see http://wiki.netbeans.org/FaqGCPauses)

# Default location of JDK, can be overridden by using --jdkhome <dir>:
#netbeans_jdkhome="/path/to/jdk"

# Additional module clusters, using ${path.separator} (';' on Windows or ':' on Unix):
#netbeans_extraclusters="/absolute/path/to/cluster1:/absolute/path/to/cluster2"

# If you have some problems with detect of proxy settings, you may want to enable
# detect the proxy settings provided by JDK5 or higher.
# In such case add -J-Djava.net.useSystemProxies=true to the netbeans_default_options.
107 changes: 107 additions & 0 deletions NetBeans/Keybindings/Emacs-rkk.xml
@@ -0,0 +1,107 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE bindings PUBLIC "-//NetBeans//DTD Editor KeyBindings settings 1.1//EN" "http://www.netbeans.org/dtds/EditorKeyBindings-1_1.dtd">
<bindings>
<bind actionName="annotations-cycling" key="SO-C"/>
<bind actionName="caret-backward" key="KP_LEFT"/>
<bind actionName="caret-backward" key="LEFT"/>
<bind actionName="caret-begin" key="ESCAPE$S-COMMA"/>
<bind actionName="caret-begin" key="SO-COMMA"/>
<bind actionName="caret-begin" key="O-HOME"/>
<bind actionName="caret-begin-line" key="HOME"/>
<bind actionName="caret-down" key="O-N"/>
<bind actionName="caret-down" key="DOWN"/>
<bind actionName="caret-down" key="KP_DOWN"/>
<bind actionName="caret-end" key="ESCAPE$S-PERIOD"/>
<bind actionName="caret-end" key="O-END"/>
<bind actionName="caret-end" key="SO-PERIOD"/>
<bind actionName="caret-end-line" key="O-E"/>
<bind actionName="caret-end-line" key="D-RIGHT"/>
<bind actionName="caret-forward" key="RIGHT"/>
<bind actionName="caret-line-first-column" key="O-A"/>
<bind actionName="caret-line-first-column" key="D-LEFT"/>
<bind actionName="caret-next-word" key="D-F"/>
<bind actionName="caret-next-word" key="O-RIGHT"/>
<bind actionName="caret-previous-word" key="O-LEFT"/>
<bind actionName="caret-previous-word" key="D-B"/>
<bind actionName="caret-up" key="UP"/>
<bind actionName="caret-up" key="O-P"/>
<bind actionName="caret-up" key="KP_UP"/>
<bind actionName="collapse-all-folds" key="SO-SUBTRACT"/>
<bind actionName="collapse-fold" key="O-MINUS"/>
<bind actionName="collapse-fold" key="O-SUBTRACT"/>
<bind actionName="comment" key="O-C$O-C"/>
<bind actionName="completion-show" key="O-SPACE"/>
<bind actionName="copy-to-clipboard" key="D-C"/>
<bind actionName="copy-to-clipboard" key="D-W"/>
<bind actionName="cut-to-clipboard" key="O-W"/>
<bind actionName="cut-to-clipboard" key="D-X"/>
<bind actionName="cut-to-line-begin" key="O-0$O-K"/>
<bind actionName="cut-to-line-end" key="O-K"/>
<bind actionName="delete-next" key="DELETE"/>
<bind actionName="delete-next" key="O-D"/>
<bind actionName="delete-previous" key="BACK_SPACE"/>
<bind actionName="documentation-show" key="SO-SPACE"/>
<bind actionName="expand-all-folds" key="SO-ADD"/>
<bind actionName="expand-all-folds" key="SO-PLUS"/>
<bind actionName="expand-all-folds" key="SO-EQUALS"/>
<bind actionName="expand-fold" key="O-EQUALS"/>
<bind actionName="expand-fold" key="O-PLUS"/>
<bind actionName="expand-fold" key="O-ADD"/>
<bind actionName="find-next" key="O-S"/>
<bind actionName="find-previous" key="O-R"/>
<bind actionName="format" key="O-BACK_SLASH"/>
<bind actionName="goto" key="D-G$G"/>
<bind actionName="goto" key="D-G$D-G"/>
<bind actionName="goto-declaration" key="O-PERIOD"/>
<bind actionName="goto-declaration" key="DO-G"/>
<bind actionName="incremental-search-forward" key="FIND"/>
<bind actionName="insert-break" key="ENTER"/>
<bind actionName="insert-tab" key="O-Q$TAB"/>
<bind actionName="page-down" key="PAGE_DOWN"/>
<bind actionName="page-down" key="D-DOWN"/>
<bind actionName="page-down" key="O-V"/>
<bind actionName="page-up" key="PAGE_UP"/>
<bind actionName="page-up" key="D-UP"/>
<bind actionName="paste-from-clipboard" key="S-INSERT"/>
<bind actionName="paste-from-clipboard" key="PASTE"/>
<bind actionName="paste-from-clipboard" key="D-V"/>
<bind actionName="paste-from-clipboard" key="O-Y"/>
<bind actionName="redo" key="SA-MINUS"/>
<bind actionName="redo" key="SO-Z"/>
<bind actionName="reindent-line" key="TAB"/>
<bind actionName="remove-tab" key="S-TAB"/>
<bind actionName="remove-word-next" key="D-D"/>
<bind actionName="remove-word-previous" key="O-BACK_SPACE"/>
<bind actionName="replace" key="SO-5"/>
<bind actionName="scroll-down" key="O-UP"/>
<bind actionName="scroll-up" key="O-DOWN"/>
<bind actionName="select-all" key="D-A"/>
<bind actionName="selection-backward" key="S-LEFT"/>
<bind actionName="selection-begin" key="SO-HOME"/>
<bind actionName="selection-begin-line" key="S-HOME"/>
<bind actionName="selection-down" key="S-DOWN"/>
<bind actionName="selection-end" key="SO-END"/>
<bind actionName="selection-end-line" key="SD-RIGHT"/>
<bind actionName="selection-forward" key="S-RIGHT"/>
<bind actionName="selection-line-first-column" key="SD-LEFT"/>
<bind actionName="selection-next-word" key="SO-RIGHT"/>
<bind actionName="selection-page-down" key="S-PAGE_DOWN"/>
<bind actionName="selection-page-up" key="S-PAGE_UP"/>
<bind actionName="selection-previous-word" key="SO-LEFT"/>
<bind actionName="selection-up" key="S-UP"/>
<bind actionName="shift-line-left" key="O-0$O-X$TAB"/>
<bind actionName="shift-line-right" key="O-X$TAB"/>
<bind actionName="split-line" key="O-ENTER"/>
<bind actionName="start-macro-recording" key="O-X$S-9"/>
<bind actionName="start-new-line" key="S-ENTER"/>
<bind actionName="stop-macro-recording" key="O-X$S-0"/>
<bind actionName="to-lower-case" key="O-X$O-L"/>
<bind actionName="to-upper-case" key="O-X$O-U"/>
<bind actionName="toggle-case-identifier-begin" key="O-C"/>
<bind actionName="toggle-typing-mode" key="INSERT"/>
<bind actionName="tooltip-show" key="D-P"/>
<bind actionName="uncomment" key="O-0$O-C$O-C"/>
<bind actionName="undo" key="D-Z"/>
<bind actionName="undo" key="O-X$U"/>
<bind actionName="word-match-next" key="O-SLASH"/>
</bindings>
12 changes: 12 additions & 0 deletions NetBeans/README.txt
@@ -0,0 +1,12 @@
# NetBeans settings
Application and user settings for NetBeans.
Tested with NetBeans 7.0, unless noted otherwise.

## Contents

### AppSettings/netbeans.conf
Application-specific configuration file.
Copy this to /Applications/NetBeans.app/Contents/Resources/NetBeans/etc/netbeans.conf

### Keybindings
Extracted contents of a NetBeans preferences export Zip file, but only for keyboard bindings.

0 comments on commit 9bc59f7

Please sign in to comment.