Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Org files lead to sluggish behavior #58

Open
lake-effect opened this issue May 5, 2021 · 1 comment
Open

Org files lead to sluggish behavior #58

lake-effect opened this issue May 5, 2021 · 1 comment

Comments

@lake-effect
Copy link

lake-effect commented May 5, 2021

Symptoms

I'm sorry I don't have much concrete info as to why, but here's what I know so far:

  • Org files upwards of around 1000 lines get very sluggish
  • "Sluggish" means slow input response. It can be as bad as multiple seconds before inputs are reflected in the display
  • It doesn't seem to strongly depend on line length, it might also be depth but even 3 levels is enough
  • Some files fail to open at all (too slow? Emacs hang)
  • Disabling org-bullets doesn't help

Environment

Org file modes

Enabled minor modes: Async-Bytecomp-Package Auto-Composition
Auto-Compression Auto-Encryption Cl-Old-Struct-Compat Company
Dumb-Jump Ede Electric-Indent File-Name-Shadow Font-Lock
Global-Auto-Revert Global-Company Global-Ede Global-Eldoc
Global-Font-Lock Global-Git-Commit Global-Linum
Global-Semantic-Idle-Scheduler Global-Semantic-Stickyfunc
Global-Semanticdb Global-Undo-Tree Helm Line-Number Linum
Magit-Auto-Revert Mouse-Wheel Org-Bullets Override-Global Projectile
Pyvenv Recentf Semantic Shell-Dirtrack Show-Paren Tooltip
Transient-Mark Undo-Tree Which-Key Yas Yas-Global

init.el

;;; package --- Main init file
;;; Commentary:
;;; This is my init file

;;; Code:


;; Added by Package.el.  This must come before configurations of
;; installed packages.  Don't delete this line.  If you don't want it,
;; just comment it out by adding a semicolon to the start of the line.
;; You may delete these explanatory comments.
;; (package-initialize)

(add-to-list 'load-path (concat user-emacs-directory "elisp"))

;; Set default font
(set-face-attribute 'default nil
                    :family "Monkey"
                    :height 120
                    :weight 'normal
                    :width 'normal)

(require 'base)
(require 'base-theme)
(require 'base-extensions)
(require 'base-functions)
(require 'base-global-keys)

(require 'lang-python)

(require 'lang-ruby)

(require 'lang-go)

(require 'lang-javascript)

(require 'lang-web)

(require 'lang-rust)

(require 'lang-c)

(blink-cursor-mode 0)
(put 'scroll-left 'disabled nil)

; Cut shell CRs from bash or something
(add-hook 'comint-output-filter-functions
          'comint-strip-ctrl-m)

(setq company-idle-delay 0.5)
(setq company-tooltip-idle-delay 0.5)

(require 'projectile)
(define-key projectile-mode-map (kbd "C-c C-p") 'projectile-command-map)
(define-key projectile-mode-map (kbd "C-c p") 'projectile-command-map)

(require 'helm)
(global-set-key (kbd "M-y") 'helm-show-kill-ring)
(global-set-key (kbd "C-s") 'helm-swoop)

(require 'browse-at-remote)
(global-set-key (kbd "C-c g") 'browse-at-remote)

(require 'magit-gh-pulls)
(add-hook 'magit-mode-hook 'turn-on-magit-gh-pulls)

(server-start)

(version)

GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30, cairo version 1.15.10) of 2020-09-19

@lake-effect
Copy link
Author

Seems similar to #30. I'll try and profile there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant