all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Segundo Bob <segundobob@gmail.com>
To: help-gnu-emacs@gnu.org
Cc: pjb@informatimago.com
Subject: Re: Emacs starts with current screen contents in its display buffer
Date: Wed, 09 Jul 2014 18:07:19 -0700	[thread overview]
Message-ID: <53BDE747.9020503@gmail.com> (raw)

Pascal J. Bourguignon wrote:

Try to type C-l to have emacs redisplay the current buffer?
---
C-l has no effect on the display, not even a flicker.

---
Pascal J. Bourguignon wrote:

Use:

     emacs -q --no-spash

What you have put in your ~/.emacs should work, it works for me.
---

For me "emacs -q --no-splash" works no different than plain "emacs".

Here is my ~/.emacs:

(custom-set-variables
  ;; custom-set-variables was added by Custom.
  ;; If you edit it by hand, you could mess it up, so be careful.
  ;; Your init file should contain only one such instance.
  ;; If there is more than one, they won't work right.
  '(delete-selection-mode t)
  '(global-linum-mode t)
  '(indent-tabs-mode nil)
  '(mark-even-if-inactive t)
  '(recentf-max-menu-items 30)
  '(recentf-max-saved-items 30)
  '(recentf-mode t)
  '(save-interprogram-paste-before-kill t)
  '(save-place t nil (saveplace))
  '(scroll-bar-mode (quote right))
  '(tab-stop-list (quote (4 8 12 16 20 24 28 32 36 40 44 48 52 56 60 64
68 72 76 80)))
  '(tab-width 4)
  '(transient-mark-mode 1))
(custom-set-faces
  ;; custom-set-faces was added by Custom.
  ;; If you edit it by hand, you could mess it up, so be careful.
  ;; Your init file should contain only one such instance.
  ;; If there is more than one, they won't work right.
  )

;; 2012-03-28 W SegundoBob
;; I don't like the default font.
(set-face-font 'menu "-*-liberation mono-*-*-*-*-*-*-*-*-*-*-*-*")
(set-face-font 'default "-*-liberation mono-*-*-*-*-*-*-*-*-*-*-*-*")

;;; Emacs Load Path
(setq load-path (append  '("/home/ldi/emacs") load-path))

;; Allow narrow to region
(put 'narrow-to-region 'disabled nil)

(setq-default transient-mark-mode t)
(setq auto-mode-alist (cons '("\\.html$" . html-helper-mode)
auto-mode-alist))
(setq auto-mode-alist (cons '("\\.htm$" . html-helper-mode)
auto-mode-alist))
(setq inhibit-startup-message t)

;;; Enable use of the Gnome clipboard
(setq x-select-enable-clipboard t)
(setq interprogram-paste-function 'x-cut-buffer-or-selection-value)

;; Key mapping for counting words in buffer - SegundoBob
(require 'count-words-buffer)
(global-set-key (kbd "\C-c c") 'count-words-buffer)

;;; Key mapping for date and date-time - SegundoBob
(require 'insert-date)
(global-set-key (kbd  "\C-c d") 'insert-date)
(global-set-key (kbd "\C-c t") 'insert-date-time)

;; Miscellaneous utility functions -  SegundoBob
(load "bob-utils.el")

;; tabbar - SegundoBob
(require 'tabbar)
; turn on the tabbar
(tabbar-mode t)
;; 2011-11-27 Su SegundoBob - Sort tabs within each group
(defun tabbar-add-tab (tabset object &optional append_ignored)
   "Add to TABSET a tab with value OBJECT if there isn't one there yet.
  If the tab is added, it is added at the beginning of the tab list,
  unless the optional argument APPEND is non-nil, in which case it is
  added at the end."
   (let ((tabs (tabbar-tabs tabset)))
     (if (tabbar-get-tab object tabset)
         tabs
       (let ((tab (tabbar-make-tab object tabset)))
         (tabbar-set-template tabset nil)
         (set tabset (sort (cons tab tabs)
                           (lambda (a b) (string< (buffer-name (car a))
(buffer-name (car b))))))))))


;; 2011-11-27 Su SegundoBob - All buffers in same group
;; Default grouping is by major mode.
(setq tabbar-buffer-groups-function
           (lambda ()
             (list "All"))) ;; code by Peter Barabas

;; 2011-11-27 Su SegundoBob - tabbar dirty buffer marker
;;  Begun from code by yswzing.
(defadvice tabbar-buffer-tab-label (after fixup_tab_label_space_and_flag
activate)
   "Add a dirty-buffer mark to a tabbar name"
   (setq ad-return-value
         (if (and (buffer-modified-p (tabbar-tab-value tab))
                  (buffer-file-name (tabbar-tab-value tab)))
             (concat " + " (concat ad-return-value " "))
           (concat " " (concat ad-return-value " ")))))

(defun ztl-modification-state-change ()
   "Toggle buffer dirty state"
   (tabbar-set-template tabbar-current-tabset nil)
   (tabbar-display-update))

(defun ztl-on-buffer-modification ()
   "Initialize dirty-buffer flag before first change."
   (set-buffer-modified-p t)
   (ztl-modification-state-change))

(add-hook 'after-save-hook 'ztl-modification-state-change)
(add-hook 'first-change-hook 'ztl-on-buffer-modification)
;; yswzing: I don't know how to handle revert.
;;(add-hook 'after-revert-hook 'ztl-modification-state-change)
;; tabbar - end *****

;; I-Switch Buffers
(iswitchb-mode 1)

;; 2012-07-21 Sa SegundoBob
(load "adaptive-wrap-prefix.el")

;; 2012-07-21 Sa SegundoBob
(require 'yaml-mode)
(add-to-list 'auto-mode-alist '("\\.yml$" . yaml-mode))

;; 2012-07-22 Su - 2012-07-25 W SegundoBob
(require 'yad-mode)
(add-to-list 'auto-mode-alist '("\\.yad$" . yad-mode))
(add-hook 'yad-mode-hook (lambda ()
         (auto-fill-mode 0)              ; No auto fill.
         (visual-line-mode 1)            ; word wrap (Visual Line Mode)
         (flyspell-mode 1)               ; Automatic spell checking
(Flyspell)
         (linum-mode 1)                  ; Display line numbers in left
margin
         (setq tab-width 2)              ; Indent 2 spaces per level for
.yad only
         (make-variable-buffer-local 'tab-stop-list)
         (setq tab-stop-list '(2 4 6 8 10 12 14 16 18 20 22
             24 26 28 30 32 34 36 38 40 42 44 46 48 50 52 54 56 58 60 62
64 66
             68 70 72 74 76 78 80))
         ;(adaptive-wrap-prefix-mode 1)   ; Wrap to indentation --
Usually not desirable.
         ))

;; 2012-07-23 M SegundoBob
;; openSUSE doesn't load the delete-selection-mode code by default
(require 'delsel)
(delete-selection-mode 1)

;; 2012-07-23 M SegundoBob
;; Save cursor position in file between sessions.
(require 'saveplace)
;; Instead of turning it on here I turned it on in customize options
;; which put a different looking enable in the custom section somewhere
above.
;;(setq-default save-place t)

;; 2013-03-17 Su SegundoBob
(setq yas/root-directory '("~/emacs.d/mysnippets"
 
"/usr/share/emacs/site-lisp/yasnippet/snippets"))
;; Map `yas/load-directory' to every element
(mapc 'yas/load-directory yas/root-directory)

;; 2013-03-22 F SegundoBob
(add-hook 'before-save-hook 'delete-trailing-whitespace)
(column-number-mode t)
(global-whitespace-mode t)
;; make whitespace-mode use just basic coloring
(setq whitespace-style (quote (spaces tabs newline space-mark tab-mark
newline-mark)))


-- 
Segundo Bob
SegundoBob@gmail.com



             reply	other threads:[~2014-07-10  1:07 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-10  1:07 Segundo Bob [this message]
     [not found] <mailman.5256.1405040472.1147.help-gnu-emacs@gnu.org>
2014-07-11  1:15 ` Emacs starts with current screen contents in its display buffer Emanuel Berg
  -- strict thread matches above, loose matches on Subject: below --
2014-07-11  1:00 Segundo Bob
     [not found] <mailman.5159.1404953726.1147.help-gnu-emacs@gnu.org>
2014-07-10  2:10 ` Emanuel Berg
2014-07-10 13:18   ` J. David Boyd
2014-07-10  0:55 Segundo Bob
2014-06-27 22:40 Segundo Bob
2014-06-28  0:02 ` James Freer
2014-06-28  1:02   ` Segundo Bob
     [not found]   ` <mailman.4461.1403917401.1147.help-gnu-emacs@gnu.org>
2014-06-28  2:39     ` Rusi
     [not found] ` <mailman.4459.1403913750.1147.help-gnu-emacs@gnu.org>
2014-06-28  6:05   ` Pascal J. Bourguignon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53BDE747.9020503@gmail.com \
    --to=segundobob@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=pjb@informatimago.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.