.emacs-my
changeset 272 f7fba93f4028
parent 266 d8034fa9f83e
child 279 fd6164dfec82
equal deleted inserted replaced
271:bf0c4a022c5a 272:f7fba93f4028
   851 
   851 
   852 (add-to-list 'auto-mode-alist '("\\.\\([sS]79\\|[sS]\\)\\'" . asm-mode))
   852 (add-to-list 'auto-mode-alist '("\\.\\([sS]79\\|[sS]\\)\\'" . asm-mode))
   853 
   853 
   854 ;; (add-hook 'asm-mode-hook '(lambda () (local-unset-key ":")))
   854 ;; (add-hook 'asm-mode-hook '(lambda () (local-unset-key ":")))
   855 ;; (add-hook 'asm-mode-hook '(lambda () (local-set-key ":" ":")))
   855 ;; (add-hook 'asm-mode-hook '(lambda () (local-set-key ":" ":")))
       
   856 
       
   857 ;; ----------------------------------------------------------------------
       
   858 ;; linker
       
   859 
       
   860 (when (fboundp 'iar-linker-config-mode)
       
   861   (add-to-list 'auto-mode-alist '("\\.icf\\'" . iar-linker-config-mode))
       
   862   )
       
   863 (when (fboundp 'iar4-linker-config-mode)
       
   864   (add-to-list 'auto-mode-alist '("\\.xcl\\'" . iar4-linker-config-mode))
       
   865   )
   856 
   866 
   857 ;; ----------------------------------------------------------------------
   867 ;; ----------------------------------------------------------------------
   858 ;; lisp
   868 ;; lisp
   859 (setq list-command-history-max 256)
   869 (setq list-command-history-max 256)
   860 
   870 
   917 (setq c-default-style '((java-mode . "my") (c-mode . "my") (csharp-mode . "my") (c++-mode . "my") (objc-mode . "my") (other . "my")))
   927 (setq c-default-style '((java-mode . "my") (c-mode . "my") (csharp-mode . "my") (c++-mode . "my") (objc-mode . "my") (other . "my")))
   918 
   928 
   919 ;; ----------------------------------------------------------------------
   929 ;; ----------------------------------------------------------------------
   920 ;; bat file, batch
   930 ;; bat file, batch
   921 
   931 
   922 (when (featurep 'bat-mode)
   932 (when (fboundp 'bat-file-mode)
   923   (progn
   933   (add-to-list 'auto-mode-alist '("\\.[bB][aA][tT]\\'" . bat-file-mode))
   924     (add-to-list 'auto-mode-alist '("\\.[bB][aA][tT]\\'" . bat-mode))
   934   (add-to-list 'auto-mode-alist '("\\.[cC][mM][dD]\\'" . bat-file-mode))
   925     (add-to-list 'auto-mode-alist '("\\.[cC][mM][dD]\\'" . bat-mode))
   935   )
   926     ))
   936 
       
   937 ;; ----------------------------------------------------------------------
       
   938 ;; nsis-mode
       
   939 
       
   940 (when (fboundp 'nsis-mode)
       
   941   (add-to-list 'auto-mode-alist '("\\.\\(nsi\\|nsh\\)\\'" . nsis-mode))
       
   942   )
   927 
   943 
   928 ;; ----------------------------------------------------------------------
   944 ;; ----------------------------------------------------------------------
   929 ;; *csharp*, c-sharp
   945 ;; *csharp*, c-sharp
   930 
   946 
   931 (autoload 'csharp-mode "csharp-mode" "Major mode for editing C# code." t)
   947 (autoload 'csharp-mode "csharp-mode" "Major mode for editing C# code." t)