The very unofficial .emacs home WojciechKomornicki.emacs
what is this all about ?
customization basics
special topics
local dotfiles
dotfiles on the web
new and updated pages
useful sites and pages
search locally
OS/2 Emacs
Latest Additions
local files:
John J. Glynn
David Jolley

linked files:


The Emacs wiki
ODP search for Emacs
; .emacs file      Wed Sep 23 17:56:12 1992  Wojciech Komornicki
(message "Loading .emacs")
(setq initial-frame-alist '((minibuffer . t) (name . "Wojciech Komornicki") (width . 100) (height . 35) (left . 5) (top . 5)))
(setq default-frame-alist '((minibuffer . t) (menu-bar-lines . 1) (width. 75) (height . 23)))
(setq-default inhibit-startup-message t)
(setq-default truncate-lines t)
(setq-default selective-display t)
(setq change-log-default-name "~/changelog")
(setq auto-save-list-file-prefix nil)
(setenv "LOGNAME" "wnk")

(add-hook 'run-after-load-hooks
  (function (lambda ()
    (message "Loading wnk customization")
      version-control t
      text-mode-hook (function (lambda ()
                     (setq fill-column 72)
                     (auto-fill-mode 1))))
     (message "done")

(add-hook 'timecard-mode-hook
  (function (lambda ()
     (make-local-variable 'version-control)
     (setq version-control 'never))))

(defvar SIG "Wojciech Komornicki")

(defun sys()
  (insert SIG)

(cond (window-system
       (require 'hilit19)
       (setq hilit-mode-enable-list  '(not text-mode)
             hilit-background-mode   'light
             hilit-inhibit-hooks     nil
             hilit-inhibit-rebinding nil)
(defun set-w-percentage (size)
  (let ((curr-w (get-buffer-window (current-buffer)))
    (n (- (window-height (get-buffer-window (current-buffer)))
          (/ (* size
            (- (screen-height)
               (window-height (minibuffer-window))))
    (if curr-w
      (select-window curr-w)
      (shrink-window n)))))
(defun adress()
  (rolo "~/address")
  (make-local-variable 'tab-stop-list)
  (setq tab-stop-list '(28 48 52 55))
  (rolo-index-sort 0)
  (set-w-percentage 75)

(defvar wnk-window-configuration nil)

(defun save-win-conf ()
  (setq wnk-window-configuration (current-window-configuration)))

(defun restore-win-conf ()
  (set-window-configuration wnk-window-configuration))

(global-set-key [M-f12] 'save-win-conf)
(global-set-key [S-M-f12] 'restore-win-conf)

(defun vc-init-log ()
  "Insert an initial log entry at the end of a file."
  (goto-char (point-max))
  (insert "/*
* $Header: /cygdrive/d/repository/Web/,v 2003/10/25 21:10:52 ingo Exp $
* $Log: WojciechKomornicki.emacs.html,v $
* Revision  2003/10/25 21:10:52  ingo
* Import
* Revision  2000/05/02 20:17:05  Administrator
* dotemacs Homepage

(put 'downcase-region 'disabled nil)

(defun indent-file ()
  (read-msdos nil)
  (while (search-forward "{" nil t)
    (backward-char 1)
    (c-indent-exp t)
    (forward-sexp 1)
    (next-line 1)

(defun trunc()
  (let ((here (point)))
    (if (eq truncate-lines nil)
    (setq truncate-lines t)
      (setq truncate-lines nil))
    (recenter t)
    (goto-char here)

(modify-frame-parameters (selected-frame) '((name . "Wojciech Komornicki")))

(global-set-key "\C-x\C-t"     (make-sparse-keymap))
(global-set-key "\C-x\C-t\C-i" 'timecard-checkin)
(global-set-key "\C-x\C-t\C-o" 'timecard-checkout)
(global-set-key "\C-x\C-t\C-t" 'timecard-find-timecard)

(setq timecard-define-menus t)    ; only if you want menus

(autoload 'timecard-find-timecard "timecard" nil t)
(autoload 'timecard-checkin       "timecard" nil t)
(autoload 'timecard-checkout      "timecard" nil t)
(autoload 'timecard-mode          "timecard" nil t)

(defun dosify ()
  (let (end)
    (setq end (point))
    (replace-string "/" "\\")

(setenv "SHELL" "c:\\4nt251\\4nt.exe")

(add-hook 'shell-mode-hook
  (function (lambda ()
    (define-key shell-mode-map "\M-\C-m" 'dosify))))

(defun sort-headers (beg end)
  (interactive "r")
    (narrow-to-region beg end)
    (goto-char (point-min))
    (while (re-search-forward "\\s +$" nil t) 
      (replace-match ""))
    (goto-char (point-min))
    (while (re-search-forward ";\n" nil t)
      (replace-match "\n\f"))
    (sort-pages nil (point-min) (point-max))
    (goto-char (point-min))
    (while (re-search-forward "\n\f" nil t)
      (replace-match ";\n"))

(defun do-nothing()

(setq tex-default-mode 'latex-mode)
(setq shell-file-name "cmdproxy.exe")
(setq shell-command-switch "-c")
(setq win32-quote-process-args t)
(setq vc-default-back-end 'RCS)

(put 'eval-expression 'disabled nil)
(load "desktop")
All content copyright by the contributors. Website maintained with Emacs , wsmake and html-helper-mode
Emacs community logo by Daniel Lundin Last updated on Sat Jan 22 14:49:24 2005 by Ingo Koch