summaryrefslogtreecommitdiffstats
path: root/emacs.d/00-functions.el
diff options
context:
space:
mode:
authorGravatar Tom Willemsen2011-06-11 19:51:08 +0200
committerGravatar Tom Willemsen2011-06-11 19:51:08 +0200
commit503e99197f45d7142d138bc878f36868d580efa8 (patch)
tree8960bb9ae181ddccd2d3b414cb31fb4d6bcf1311 /emacs.d/00-functions.el
parenta7dd6805b2de1828e14767e267e7d72a0392644e (diff)
downloaddotfiles-503e99197f45d7142d138bc878f36868d580efa8.tar.gz
dotfiles-503e99197f45d7142d138bc878f36868d580efa8.zip
EMACS: init file is once again one big file
Diffstat (limited to 'emacs.d/00-functions.el')
-rw-r--r--emacs.d/00-functions.el40
1 files changed, 0 insertions, 40 deletions
diff --git a/emacs.d/00-functions.el b/emacs.d/00-functions.el
deleted file mode 100644
index 20d75ff..0000000
--- a/emacs.d/00-functions.el
+++ /dev/null
@@ -1,40 +0,0 @@
-(defun what-face (pos)
- "Find out which face the current position uses"
- (interactive "d")
- (let ((face (or (get-char-property (point) 'read-face-name)
- (get-char-property (point) 'face))))
- (if face
- (message "Face: %s" face)
- (message "No face at %d" pos))))
-
-(defun my-comp-finish-function (buf str)
- "Don't show compilation window if everything went ok"
- (if (string-match "exited abnormally" str)
- ;; there were errors
- (message "compilation errors, press C-x ` to visit")
- ;; no errors, make the compilation window go away in 0.5 seconds
- (run-at-time 0.5 nil 'delete-windows-on buf)
- (message "NO COMPILATION ERRORS!")))
-
-(defun show-whitespace ()
- (interactive)
- (whitespace-mode t))
-
-(defun fullscreen ()
- (interactive)
- (x-send-client-message nil 0 nil "_NET_WM_STATE" 32
- '(2 "_NET_WM_STATE_MAXIMIZED_VERT" 0))
- (x-send-client-message nil 0 nil "_NET_WM_STATE" 32
- '(2 "_NET_WM_STATE_MAXIMIZED_HORZ" 0)))
-
-(defun c-toggle-header-source ()
- (interactive)
- (let ((ext (file-name-extension (buffer-file-name)))
- (noext (file-name-sans-extension (buffer-file-name))))
- (if (string= (substring ext 0 1) "c")
- (find-file (concat noext ".h"))
- (find-file (concat noext ".c")))))
-
-(defun browse-to-current-file ()
- (interactive)
- (browse-url buffer-file-name))