Ok... so you use emacs but your lisp could use some help. Here are some tips.
| emacs key | function |
|---|---|
| C-h v | Lookup variable by name |
| C-h f | Lookup function by name |
| C-h k | Lookup what is bound to a key |
Note: "C-h v" means hold the control key while hitting the "h" key. Then release both keys and hit the "v" key
(defun function-name () (interactive) (do-something-cool) )
(defun indent-this-buffer () "Select all, indent region" (interactive) (mark-whole-buffer) (indent-region (region-beginning) (region-end) nil) )
;; To turn off the menu: (menu-bar-mode nil) ;; To turn off the tool bar: (tool-bar-mode nil)
(global-font-lock-mode t)
(define-key c-mode-base-map [f8] 'compile)