;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; load up the bind keys
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
load( prependInstallPath( "samples/local/schBindKeys.il" ) )
load( prependInstallPath( "samples/local/leBindKeys.il" ) )
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;  Misc
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;geSetScrollPercent(75)

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;  Define the default editor
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; editor="xterm -e vi"
; editor="gedit"
; editor="nedit"
; editor="xterm -font 12x24 -e vi"
; editor="xterm -fg black -bg AntiqueWhite -fn courR14 -cr red -sl 1000 -e vi"

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; ADE
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
envSetVal( "asimenv.startup" "projectDir" 'string "./simulation")
envSetVal("asimenv" "saveDir" 'string  "./.artist_states")
envSetVal( "asimenv.startup" "simulator" 'string "ams")

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Set the default Symbol Generation to Analog
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
schSetEnv( "tsgTemplateType" "analog" )

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
hiGetCIWindow()->infix = nil
hiSetUndoLimit(10)

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; set UI form placement defaults
ciw=hiGetCIWindow()
ciw->formPlacement="center"
ciw->formRelativeTo="screen"
ciw->optionFormPlacement="center"
ciw->optionFormRelativeTo="screen"

; ---------------------------------------------------------------
; uncomment to have the library manager automatically open
; ---------------------------------------------------------------
 ddsOpenLibManager()

; -------------------------------------------------------------------
; ic61 envars
; -------------------------------------------------------------------
envSetVal("ui"     "sessionFocusPolicy" `cyclic "CanvasDelay")
envSetVal("ui"     "canvasFocusDelay"   `int    200)
envSetVal("ui"     "raiseCIWonError"    `boolean  t)
;envSetVal("ui" "webBrowser" 'string "mozilla")
envSetVal("ui" "webBrowser" 'string  "firefox")

envSetVal("graphic" "dotStyleMajorGrid" 'boolean t)


; ---------------------------------------------------------------
; read the local cdsenv file
; ---------------------------------------------------------------
;envLoadFile("./.cdsenv")


printf("Finished loading cdsinit\n")

