emacskurs/emacskurs-init-comments.el

107 lines
1.8 KiB
EmacsLisp
Raw Normal View History

2015-03-06 20:14:27 +00:00
;; we can require features
2013-08-01 01:11:08 +00:00
2015-03-06 20:14:27 +00:00
;; add mirrors for list-packages
2013-08-01 01:11:08 +00:00
2015-03-06 20:14:27 +00:00
;; needed to use downloaded packages
2013-08-01 01:11:08 +00:00
2015-03-06 20:14:27 +00:00
;; install some packages if missing
;; (auto-complete ido-vertical-mode monokai-theme multiple-cursors undo-tree)
2013-08-01 01:11:08 +00:00
2015-03-06 20:14:27 +00:00
;; no splash screen
;; show matching parenthesis
2013-08-01 01:11:08 +00:00
;; show column number in mode-line
2015-03-06 20:14:27 +00:00
;; overwrite marked text
2013-08-01 01:11:08 +00:00
2015-03-06 20:14:27 +00:00
;; enable ido-mode, changes the way files are selected in the minibuffer
2013-08-01 01:11:08 +00:00
2015-03-06 20:14:27 +00:00
;; use ido everywhere
2013-08-01 01:11:08 +00:00
2015-03-06 20:14:27 +00:00
;; show vertically
2013-08-01 01:11:08 +00:00
2015-03-06 20:14:27 +00:00
;; use undo-tree-mode globally
2013-08-01 01:11:08 +00:00
2015-03-06 20:14:27 +00:00
;; stop blinking cursor
2013-08-01 01:11:08 +00:00
;; no menubar
;; no toolbar either
;; scrollbar? no
;; global-linum-mode shows line numbers in all buffers, exchange 0
;; with 1 to enable this feature
2015-03-06 20:14:27 +00:00
;; answer with y/n
;; choose a color-theme
;; get the default config for auto-complete (downloaded with
;; package-manager)
;; load the default config of auto-complete
2013-08-01 01:11:08 +00:00
;; kills the active buffer, not asking what buffer to kill.
;; adds all autosave-files (i.e #test.txt#, test.txt~) in one
;; directory, avoid clutter in filesystem.
2015-03-06 20:14:27 +00:00
2013-08-01 01:11:08 +00:00
;; defining a function that sets more accessible keyboard-bindings to
;; hiding/showing code-blocs
;; now we have to tell emacs where to load these functions. Showing
;; and hiding codeblocks could be useful for all c-like programming
;; (java is c-like) languages, so we add it to the c-mode-common-hook.
;; adding shortcuts to java-mode, writing the shortcut folowed by a
;; non-word character will cause an expansion.
;; the shortcuts are only useful in java-mode so we'll load them to
;; java-mode-hook.
;; defining a function that guesses a compile command and bindes the
;; compile-function to C-c C-c
;; this is a java-spesific function, so we only load it when entering
;; java-mode
;; defining a function that sets the right indentation to the marked
;; text, or the entire buffer if no text is selected.
;; bindes the tidy-function to C-TAB
2015-03-06 20:14:27 +00:00