help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: config problems and bisecting an org-mode configuration file


From: Emanuel Berg
Subject: Re: config problems and bisecting an org-mode configuration file
Date: Sat, 03 Jun 2017 17:46:34 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

Sharon Kimble wrote:

> I have three problems with my config at the
> moment -
>
> - an inability to close emacs using its
> internal commands

What do you mean ... ? Because you have Gnus
running and it won't save activity?
Or something else?

    (defun emacs-quit-no-confirm ()
      (interactive)
      (when (gnus-alive-p) (gnus-group-exit))
      (save-buffers-kill-terminal t) ) ; silently save all

> and - an inability to
> right-click on an url in gnus to either open
> that url in emacs-w3m

Do you mean URL:s that for some reasons are
not buttons?

> or copy it to the clipboard for use in
> another browser

If it is a literal URL, you can do

    (defun kill-url ()
      (interactive)
      (kill-new (thing-at-point 'url)) )
    )

> and - an inability to use +foo+ to
> strike-through something to effectively show
> that its commented out.

You want a word that is enclosed within plus
signs to take on a specific face? You can do

    (font-lock-add-keywords 'emacs-lisp-mode
      '(
        ("\\+.*\\+" . font-lock-comment-face)
        )
      t) ; APPEND

(Change mode and face to your liking.)

> it needs to be sorted out this weekend

Oh, no! Get to work everyone :)

-- 
underground experts united
http://user.it.uu.se/~embe8573




reply via email to

[Prev in Thread] Current Thread [Next in Thread]