A few days ago, the father of groovy spoke about Scala and made the language famous. I was also eager to try it, but I had been suffering from the absence of a better editor, at least highlighting my Scala keywords.
Scala officially recommends eclipse, netbeans, and intellij idea plug-ins. Except for the third plug-in that I have not installed, the other two have installed the corresponding plug-ins and tried. The results can be imagined, otherwise, I won't write this article.Article.
A senior once said to me: There are three types of sayings in the world:ProgramPersonnel, the first is VI, the second is Emacs, and the rest are classified as the third.
I don't like the VI style very much. It is generally used to modify some files in Linux. After all, VI is an indigenous people, and almost all release versions should come with their own (gvim is another theory ). Emacs usually needs to be installed separately.
It's a bit nonsense.
You can download the corresponding platform region at http://www.gnu.org/software/emacs. The new version is version 23.1. I like the icons in both Windows and Linux.
Http://www.scala-lang.org/node/354this is the introduction of the emacsplug-in by scala. You can follow the instructions. If you do not have the svn client, you can click the link to download it. However, there are a lot of links.
First:
Keyword highlighting is good. That's enough.
In addition, we provide my Emacs configuration file:
1 (Require ' CC-mode)
2 ;C LanguageSet style to K & R style
3 (Add - Hook ' C-mode-hook
4 ' (Lambda ()
5 (C - Set - Style " K & R " )))
6 ; Set C ++ Style as stroustrup Style
7 (Add - Hook ' C ++-mode-hook
8 ' (Lambda ()
9 (C - Set - Style " Strostrup " )))
10 ; Displays the row number
11 (Require ' Linum)
12 ( Global - Linum - Mode)
13
14 ; Custom buttons
15 ( Global - Set - Key [F1] ' Shell); F1 enters Shell
16
17 General settings
18 (Setq make - Backup - Files nil); does not generate backup files
19 (Setq default - Major - Mode ' C-mode); Use the text mode once enabled.
20 ( Global - Font - Lock - Mode t); syntax highlighting
21 (Auto - Image - File - Mode t); enable the image display function
22 (Tool - Bar - Mode nil); remove the large Toolbar
23 (Fset ' Yes-or-no-P ' Y - Or - N - P); Use y / N instead of yes / No
24 (Scroll - Bar - Mode nil); no scroll bar
25
26
27 ; Add color - Theme plugin
28 (Require ' Color-theme)
29 (Color - Theme - Initialize)
30 (Color - Theme - Deep - Blue)
31
32 (Add - To - List ' Load-path "D: // emacs-23.1/emacs_plugins/Scala-mode ")
33 (Require ' Yasnippet-bundle)
34 (Require ' Scala-mode-auto)
35 (Add - Hook ' Scala-mode-hook
36 ' (Lambda ()
37 (YAS / Minor - Mode - On)
38 ))
39 (Setq Yas / My - Directory " D:/emacs-23.1/emacs_plugins/Scala-mode/contrib/yasnippet/snippets " )
40 (YAS / Load - Directory Yas / My - Directory)