May anyone share his IDLwave configuration file with me ? [message #53351] |
Sun, 08 April 2007 23:53  |
zhuangbao@gmail.com
Messages: 12 Registered: January 2007
|
Junior Member |
|
|
Mine is below:
;;;; 5. settings for IDLwave
;; Change the indentation preferences
;; Start autoloading routine info after 2 idle seconds
(setq idlwave-init-rinfo-when-idle-after 2)
;; Pad operators with spaces
(setq idlwave-do-actions t
idlwave-surround-by-blank t)
;; Syntax Highlighting
(add-hook 'idlwave-mode-hook 'turn-on-font-lock)
;;(setq idlwave-default-font-lock-items 3)
;; set reserved word captical
(setq idlwave-reserved-word-upcase t)
;; Automatically start the shell when needed
(setq idlwave-shell-automatic-start t)
;; Bind debugging commands with CONTROL and SHIFT modifiers
(setq idlwave-shell-debug-modifiers '(control shift))
;;(setq idlwave-shell-debug-modifiers '(super))
;; new line and auto indent
(add-hook 'idlwave-mode-hook
(lambda ()
(local-set-key [(return)] 'newline-and-indent) ))
;; set maximum highlightning
(add-hook 'idlwave-mode-hook
(lambda ()
(setq font-lock-maximum-decoration 3)))
;; First for the source buffer
(add-hook 'idlwave-mode-hook
(lambda ()
(local-set-key [f4] 'idlwave-shell-retall)
(local-set-key [f5] 'idlwave-shell-break-here)
(local-set-key [f6] 'idlwave-shell-clear-current-bp)
(local-set-key [f7] 'idlwave-shell-cont)
(local-set-key [f8] 'idlwave-shell-clear-all-bp)))
;; Then for the shell buffer
(add-hook 'idlwave-shell-mode-hook
(lambda ()
(local-set-key [f4] 'idlwave-shell-retall)
(local-set-key [f5] 'idlwave-shell-break-here)
(local-set-key [f6] 'idlwave-shell-clear-current-bp)
(local-set-key [f7] 'idlwave-shell-cont)
(local-set-key [f8] 'idlwave-shell-clear-all-bp)))
;; set custom examination
(add-hook 'idlwave-shell-mode-hook
(lambda ()
(idlwave-shell-define-key-both [s-down-mouse-2]
(idlwave-shell-mouse-
examine
"print, size(___,/
DIMENSIONS)"))
(idlwave-shell-define-key-both [f9] (idlwave-shell-examine
"print, size(___,/
DIMENSIONS)"))
(idlwave-shell-define-key-both [f10] (idlwave-shell-
examine
"print,size(___,/
TNAME)"))
(idlwave-shell-define-key-both [f11] (idlwave-shell-
examine
"help,___,/
STRUCTURE"))))
;; ;; Some setting can only be done from a mode hook. Here is an
example:
(add-hook 'idlwave-mode-hook
(lambda ()
;; (setq case-fold-search nil) ; Make searches case
sensitive
;; ;; ;; Run other functions here
;; (font-lock-mode 1) ; Turn on font-lock
mode
(idlwave-auto-fill-mode 0) ; Turn off auto
filling
;; ;; (setq idlwave-help-browser-function 'browse-url-w3)
;; ;; ;; Pad with 1 space (if -n is used then make the
;; ;; ;; padding a minimum of n spaces.) The defaults use
-1
;; ;; ;; instead of 1.
(idlwave-action-and-binding "=" '(idlwave-expand-equal 1
1))
(idlwave-action-and-binding "<" '(idlwave-surround 1 1))
(idlwave-action-and-binding ">" '(idlwave-surround 1 1
'(?-)))
(idlwave-action-and-binding "&" '(idlwave-surround 1 1))
(idlwave-action-and-binding "+" '(idlwave-surround 1 1))
(idlwave-action-and-binding "-" '(idlwave-surround 1 1))
(idlwave-action-and-binding "*" '(idlwave-surround 1 1))
(idlwave-action-and-binding "/" '(idlwave-surround 1 1))
(idlwave-action-and-binding "#" '(idlwave-surround 1 1))
;; Only pad after comma and with exactly 1 space
(idlwave-action-and-binding "," '(idlwave-surround nil
1))
(idlwave-action-and-binding "&" '(idlwave-surround 1 1))
;; ;; ;; Pad only after `->', remove any space before the
arrow
(idlwave-action-and-binding "->" '(idlwave-surround 0 -1
nil 2))
))
|
|
|
|