unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: znavko--- via <help-guix@gnu.org>
To: "help-guix" <help-guix@gnu.org>
Subject: Why Emacs config file disables Welcome message only if this line places to .emacs but not in .emacs.d/init.el
Date: Tue, 29 Dec 2020 17:54:06 +0000	[thread overview]
Message-ID: <5dcfd9ae1486823d1b952db6a7830ba4@disroot.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 743 bytes --]

Hello! I plan to type some russian translations for guix manual sometimes again.

I still have undergraduate level of emacs and have annoying ignorance of how to configure emacs.

For example this line can hide "Welcome" frame:
(setq inhibit-startup-screen t)

I placed it into ~/.emacs.d/.init.el where I have placed my po-mode lines and they works.
But exactly this line does not work. I have po-mode in emacs but I still have "Welcome" window.

I placed this line "(setq inhibit-startup-screen t)" to ~/.emacs and I finally got "Welcome" window away.

My next step is russian spell check. Need to have some basics of how to deal with this great instrument!

Can you advice some good tutorials for better understanding emacs?

[-- Attachment #2: .init.el --]
[-- Type: application/octet-stream, Size: 1020 bytes --]

# one window mode
     (setq inhibit-startup-screen t)


     (defun po-wrap ()
       "Filter current po-mode buffer through `msgcat' tool to wrap all lines."
       (interactive)
       (if (eq major-mode 'po-mode)
           (let ((tmp-file (make-temp-file "po-wrap."))
     	    (tmp-buf (generate-new-buffer "*temp*")))
     	(unwind-protect
     	    (progn
     	      (write-region (point-min) (point-max) tmp-file nil 1)
     	      (if (zerop
     		   (call-process
     		    "msgcat" nil tmp-buf t (shell-quote-argument tmp-file)))
     		  (let ((saved (point))
     			(inhibit-read-only t))
     		    (delete-region (point-min) (point-max))
     		    (insert-buffer tmp-buf)
     		    (goto-char (min saved (point-max))))
     		(with-current-buffer tmp-buf
     		  (error (buffer-string)))))
     	  (kill-buffer tmp-buf)
     	  (delete-file tmp-file)))))


    (add-hook 'po-subedit-mode-hook '(lambda () (longlines-mode 1)))
    (add-hook 'po-subedit-exit-hook '(lambda () (longlines-mode 0)))



             reply	other threads:[~2020-12-29 17:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-29 17:54 znavko--- via [this message]
2021-01-01 15:38 ` Why Emacs config file disables Welcome message only if this line places to .emacs but not in .emacs.d/init.el znavko
2021-01-04 16:16 ` Alex Kost

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

  List information: https://guix.gnu.org/

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

  git send-email \
    --in-reply-to=5dcfd9ae1486823d1b952db6a7830ba4@disroot.org \
    --to=help-guix@gnu.org \
    --cc=znavko@disroot.org \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).