emacs-orgmode
[Top][All Lists]
Advanced

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

Re: "text mode" org mode


From: Emanuel Berg
Subject: Re: "text mode" org mode
Date: Tue, 15 Sep 2020 16:37:04 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)

Gustavo Barros wrote:

> That's probably not something most Org users would
> do, but I think you'd get close to what you want
> with:
>
>     (add-hook 'org-mode-hook 'visible-mode)

Yeah, that seems to have done it? Great! Thanks a lot!

;;; -*- lexical-binding: t -*-
;;;
;;; this file:
;;;   http://user.it.uu.se/~embe8573/emacs-init/org-my.el
;;;   https://dataswamp.org/~incal/emacs-init/org-my.el

(require 'mode-line)
(require 'org)
(require 'super)

(defun org-mode-set-keys ()
  (let ((the-map org-mode-map))
    (disable-super-global-keys the-map)
    (define-key the-map "\C-c\C-c" #'org-latex-export-to-pdf) ))

;; (setq org-mode-hook nil)
(defun org-mode-hook-f ()
  (auto-fill-mode -1)
  (enable-line-mode)
  (org-mode-set-keys)
  (visible-mode) )
(add-hook 'org-mode-hook #'org-mode-hook-f)

-- 
underground experts united
http://user.it.uu.se/~embe8573
https://dataswamp.org/~incal




reply via email to

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