emacskurs/emacskurs-init-comments.el

107 lines
1.8 KiB
EmacsLisp

;; we can require features
;; add mirrors for list-packages
;; needed to use downloaded packages
;; install some packages if missing
;; (auto-complete ido-vertical-mode monokai-theme multiple-cursors undo-tree)
;; no splash screen
;; show matching parenthesis
;; show column number in mode-line
;; overwrite marked text
;; enable ido-mode, changes the way files are selected in the minibuffer
;; use ido everywhere
;; show vertically
;; use undo-tree-mode globally
;; stop blinking cursor
;; no menubar
;; no toolbar either
;; scrollbar? no
;; global-linum-mode shows line numbers in all buffers, exchange 0
;; with 1 to enable this feature
;; 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
;; 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.
;; 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