doomemacs / doomemacs

An Emacs framework for the stubborn martian hacker
MIT License
19.46k stars 3.06k forks source link

[BUG] C-a doesn't bring back to the same line #2357

Closed coolsidd closed 4 years ago

coolsidd commented 4 years ago

What did you expect to happen? C-a to not jump lines and remain in the same line.

What actually happened? C-a jumps to the previous line on which the command (C-a) was called

Additional details: doom_backtobol

The above gif shows me using C-a then C-n a couple of times and then C-a again.

Hopefully, this is not intended. If it is, is there a recommended fix?

Steps to reproduce:

  1. Use C-a and C-n

System information:

``` emacs version 26.3 features XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS GLIB NOTIFY ACL GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS LIBSYSTEMD LCMS2 build Aug 30, 2019 buildopts (--prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib --localstatedir=/var --with-x-toolkit=gtk3 --with-xft --with-modules 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fno-plt' CPPFLAGS=-D_FORTIFY_SOURCE=2 LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now) windowsys x daemonp server-running doom version 2.0.9 build HEAD -> develop, origin/develop, origin/HEAD 8a9d8f03e 2020-01-05 20:12:24 -0500 dir ~/.doom.d/ system type gnu/linux config x86_64-pc-linux-gnu shell /bin/bash uname Linux 5.4.8-arch1-1 #1 SMP PREEMPT Sat, 04 Jan 2020 23:46:18 +0000 x86_64 path (~/perl5/bin/ /usr/local/bin/ /usr/bin/ /bin/ /usr/local/sbin/ /opt/dotnet/ /opt/flutter/bin/ /usr/lib/jvm/default/bin/ /usr/bin/site_perl/ /usr/bin/vendor_perl/ /usr/bin/core_perl/ ~/.emacs.d/bin/ ~/go/bin/ ~/.local/bin/ /usr/lib/emacs/26.3/x86_64-pc-linux-gnu/) config envfile envvar-file elc-files 32 modules (:completion company ido ivy :ui doom doom-dashboard doom-quit hl-todo modeline nav-flash ophints (popup +all +defaults) treemacs vc-gutter vi-tilde-fringe window-select workspaces :editor file-templates fold (format +onsave) multiple-cursors rotate-text snippets :emacs dired electric vc :tools docker editorconfig ein eval flycheck flyspell gist (lookup +docsets) lsp magit pdf :lang (cc +lsp) csharp data emacs-lisp go latex markdown (org +dragndrop +ipython +pandoc +present) python sh :email (mu4e +gmail) :app (write +wordnut +langtool) :config (default +bindings +smartparens)) packages (djvu pdf-tools rainbow-mode forge org-ref company-jedi dockerfile-mode jenkins groovy-mode preseed-generic-mode sphinx-doc goto-last-change gap-mode verilog-mode grip-mode sphinx-mode sage-shell-mode) elpa (n/a) ```

config.el

```elisp ;;; ~/.doom.d/config.el -*- lexical-binding: t; -*- ;; (global-unset-key(kbd "C-M-i")) ;; (global-set-key (kbd "C-M-i") 'company-complete) ;; (global-unset-key(kbd "C-;")) ;; (global-set-key (kbd "C-;") 'company-complete) ;; (local-set-key (kbd "C-M-q") 'company-quickhelp-manual-begin)) ;; (define-key ivy-minibuffer-map (kbd "C-n") 'ivy-next-line) ;; (define-key ivy-minibuffer-map (kbd "C-p") 'ivy-previous-line) ;; (define-key ivy-minibuffer-map (kbd "M-n") 'ivy-next-history-element) ;; (define-key ivy-minibuffer-map (kbd "M-p") 'ivy-previous-history-element) ;; (global-set-key (kbd "C-c C-r") 'ivy-resume) ;; (global-set-key (kbd "") 'ivy-resume) ;; (global-set-key (kbd "M-x") 'counsel-M-x) ;; (global-set-key (kbd "C-x C-f") 'counsel-find-file) ;; (global-set-key (kbd " f") 'counsel-describe-function) ;; (global-set-key (kbd " v") 'counsel-describe-variable) ;; (global-set-key (kbd " l") 'counsel-find-library) ;; (global-set-key (kbd " i") 'counsel-info-lookup-symbol) ;; (global-set-key (kbd " u") 'counsel-unicode-char) ;; (global-set-key (kbd "C-c g") 'counsel-git) ;; (global-set-key (kbd "C-c i") 'counsel-imenu) ;; (global-set-key (kbd "C-c j") 'counsel-git-grep) ;; (global-set-key (kbd "C-c k") 'counsel-ag) ;; (global-set-key (kbd "C-x l") 'counsel-locate) ;; (global-set-key (kbd "C-S-o") 'counsel-rhythmbox) ;; (define-key minibuffer-local-map (kbd "C-r") 'counsel-minibuffer-history) ;; (global-set-key (kbd "C-S-c C-S-c") 'mc/edit-lines) ;; (global-set-key (kbd "C->") 'mc/mark-next-like-this-word) ;; (global-set-key (kbd "C-<") 'mc/mark-previous-like-this-word) ;; (global-set-key (kbd "C-c C-<") 'mc/mark-all-like-this) ;; (define-key global-map (kbd "C-c ") 'ace-mc-add-single-cursor) ;; ;; (define-key global-map (kbd "C-u C-S-c SPC") 'ace-mc-add-char) ;; (define-key global-map (kbd "") 'ace-jump-mode) ;; ;; (define-key dired-mode-map (kbd "F") ;; (setq persp-keymap-prefix (kbd "C-c e")) ;; (after! projectile ;; (define-key projectile-mode-map (kbd "C-c p") 'projectile-command-map)) ;; (setq doom-leader-alt-key "C-c d")k (setq ivy-use-virtual-buffers t) (setq enable-recursive-minibuffers t) (setq ivy-re-builders-alist '((t . ivy--regex-ignore-order))) (setq org-agenda-files (list "~/my_agenda.org")) (setq org-log-done 'time) ;; (defun slick-cut (beg end) ;; (interactive ;; (if mark-active ;; (list (region-beginning) (region-end)) ;; (list (line-beginning-position) (line-beginning-position 2))))) ;; (advice-add 'kill-region :before #'slick-cut) ;; (defun slick-copy (beg end) ;; (interactive ;; (if mark-active ;; (list (region-beginning) (region-end)) ;; (message "Copied line") ;; (list (line-beginning-position) (line-beginning-position 2))))) ;; (advice-add 'kill-ring-save :before #'slick-copy) (defvar doom-leader-key nil) (defvar doom-leader-alt-key nil) (map! ;; "M-x" #'execute-extended-command ;; "C-f" #'forward-char ;; "C-b" #'backward-char ;; "C-x C-b" #'ibuffer-list-buffers "C->" #'mc/mark-next-word-like-this "C-<" #'mc/mark-previous-like-this-word "" #'avy-goto-char-timer "" #'call-last-kbd-macro ;; Editor related bindings "C-a" #'doom/backward-to-bol-or-indent "C-z" #'undo-tree-undo ;; [remap newline] #'newline-and-indent ;; "C-k" #'kill-line ;; "C-j" #'+default/newline "C-s" #'swiper ;; Buffer related bindings ;; "C-x b" #'persp-switch-to-buffer ;; "C-x B" #'switch-to-buffer ;; "C-x k" #'doom/kill-this-buffer-in-all-windows ;; Switching windows ;; "C-x p" #'+popup/other ;; "C-x O" #'switch-window-then-swap-buffer ;; Restore common editing keys in minibuffer ;; (:map (minibuffer-local-map ;; minibuffer-local-ns-map ;; minibuffer-local-completion-map ;; minibuffer-local-must-match-map ;; minibuffer-local-isearch-map ;; read-expression-map) ;; "C-g" #'abort-recursive-edit ;; "C-a" #'move-beginning-of-line) ;; Org related bindings "C-c" nil (:prefix "C-c o" "C-c" #'+org/dwim-at-point "o s" #'org-caldav-sync "o a a" #'org-agenda "o a t" #'org-todo-list "o a m" #'org-tags-view "o a v" #'org-search-view "c" #'org-capture "C" (λ! (require 'org-capture) (call-interactively #'org-capture-goto-target)) "b" #'org-iswitchb "e l b" #'org-beamer-export-to-latex "e l B" #'org-beamer-export-as-latex "e l P" #'org-beamer-export-to-pdf "l" #'org-store-link ) ;; Doom emacs bindings (:prefix "C-c d" "d" #'+doom-dashboard/open "f" #'recentf-open-files (:when (featurep! :ui neotree) "n" #'+neotree/open "N" #'neotree/find-this-file) (:when (featurep! :ui treemacs) "n" #'+treemacs/toggle "N" #'+treemacs/find-file) "o" #'+popup/other "t" #'+popup/toggle "c" #'+popup/close "C" #'+popup/close-all "r" #'+popup/raise "R" #'+popup/restore "s" #'doom/open-scratch-buffer "S" #'doom/switch-to-scratch-buffer "u" #'doom/sudo-this-file "e" #'+eshell/open-popup "E" #'+eshell/open :desc "Reload Private Config" "R" #'doom/reload) "C-`" #'+popup/toggle ;; Snippets (:prefix "C-c s" :desc "New snippet" "n" #'yas-new-snippet :desc "Insert snippet" "i" #'yas-insert-snippet :desc "Find snippet" "s" #'+default/find-in-snippets :desc "Find snippet for mode" "S" #'+default/browse-snippets :desc "Find global snippet" "/" #'yas-visit-snippet-file :desc "Reload snippets" "r" #'yas-reload-all :desc "Create Temp Template" "c" #'aya-create :desc "Use Temp Template" "e" #'aya-expand) ;; Version control bindings (:prefix "C-c v" :desc "Browse issues tracker" "i" #'+vc/git-browse-issues :desc "Browse remote" "o" #'+vc/git-browse :desc "Diff current file" "d" #'magit-diff-buffer-file :desc "Git revert hunk" "r" #'git-gutter:revert-hunk :desc "Git stage file" "S" #'magit-stage-file :desc "Git stage hunk" "s" #'git-gutter:stage-hunk :desc "Git time machine" "t" #'git-timemachine-toggle :desc "Git unstage file" "U" #'magit-unstage-file :desc "Initialize repo" "I" #'magit-init :desc "List repositories" "L" #'magit-list-repositories :desc "Magit blame" "b" #'magit-blame-addition :desc "Magit buffer log" "l" #'magit-log-buffer-file :desc "Magit commit" "c" #'magit-commit-create :desc "Magit status" "g" #'magit-status :desc "Next hunk" "]" #'git-gutter:next-hunk :desc "Previous hunk" "[" #'git-gutter:previous-hunk) ;; Working with windows, workgroups and stuff. (:prefix "C-c w" "d" #'+workspace/display "r" #'+workspace/rename "c" #'+workspace/new "k" #'+workspace/delete "s" #'+workspace/save-session "l" #'+workspace/load-session "L" #'+workspace/load-last-session "o" #'doom/kill-other-buffers "u" #'winner-undo "U" #'winner-redo "p" #'+workspace/switch-left "n" #'+workspace/switch-right "h" #'resize-window ; requires private package 'resize-window' "1" (λ! (+workspace/switch-to 0)) "2" (λ! (+workspace/switch-to 1)) "3" (λ! (+workspace/switch-to 2)) "4" (λ! (+workspace/switch-to 3)) "5" (λ! (+workspace/switch-to 4)) "6" (λ! (+workspace/switch-to 5)) "7" (λ! (+workspace/switch-to 6)) "8" (λ! (+workspace/switch-to 7)) "9" (λ! (+workspace/switch-to 8)) "0" #'+workspace/switch-to-last) ;; Multiple Cursors (:when (featurep! :editor multiple-cursors) (:prefix "C-c m" "l" #'mc/edit-lines "n" #'mc/mark-next-like-this "N" #'mc/unmark-next-like-this "p" #'mc/mark-previous-like-this "P" #'mc/unmark-previous-like-this "t" #'mc/mark-all-like-this "m" #'mc/mark-all-like-this-dwim "e" #'mc/edit-ends-of-lines "a" #'mc/edit-beginnings-of-lines "s" #'mc/mark-sgml-tag-pair "d" #'mc/mark-all-like-this-in-defun "" #'mc/add-cursor-on-click)) ;; Plugins ;; Misc plugins "" #'+neotree/open "C-=" #'er/expand-region "C-c C-\\" #'goto-last-change ; requires private package 'goto-last-change' "C-c p p" #'projectile-switch-project (:after org (:map org-mode-map "" #'avy-goto-char-timer )) ;; Smartparens (:after smartparens (:map smartparens-mode-map "C-M-a" #'sp-beginning-of-sexp "C-M-e" #'sp-end-of-sexp "C-M-f" #'sp-forward-sexp "C-M-b" #'sp-backward-sexp "C-M-d" #'sp-splice-sexp "C-M-k" #'sp-kill-sexp "C-M-t" #'sp-transpose-sexp "C-" #'sp-forward-slurp-sexp "M-" #'sp-forward-barf-sexp "C-" #'sp-backward-slurp-sexp "M-" #'sp-backward-barf-sexp)) ;; ;; Company mode ;; "C-;" #'+company/complete ;; ;; Counsel ;; (:when (featurep! :completion ivy) ;; (:after counsel ;; (:map counsel-ag-map ;; [backtab] #'+ivy/wgrep-occur ; search/replace on results ;; "C-SPC" #'ivy-call-and-recenter ; preview ;; "M-RET" (+ivy-do-action! #'+ivy-git-grep-other-window-action)))) ;; "C-h b" #'counsel-descbinds ;; "C-M-y" #'counsel-yank-pop ;; "C-h F" #'counsel-faces ;; "C-h p" #'counsel-package ;; "C-h a" #'counsel-apropos ;; "C-h V" #'counsel-set-variable ;; "C-'" #'counsel-imenu ;; ;; Repl Toggle "C-c C-z" #'+eval/open-repl ;; ;; Company mode and the like ;; (require 'company) (:after company (:map company-active-map "C-o" #'company-search-kill-others "C-n" #'company-select-next "C-p" #'company-select-previous "C-h" #'company-show-doc-buffer "C-s" #'company-search-candidates "M-s" #'company-filter-candidates "C-;" #'company-complete-common-or-cycle "TAB" #'company-complete-common-or-cycle [backtab] #'company-select-previous "" #'counsel-company) (:map company-search-map "C-n" #'company-search-repeat-forward "C-p" #'company-search-repeat-backward "C-s" (λ! (company-search-abort) (company-filter-candidates)))) ;; NeoTree bindings (:after neotree :map neotree-mode-map "q" #'neotree-hide [return] #'neotree-enter "RET" #'neotree-enter "SPC" #'neotree-quick-look "v" #'neotree-enter-vertical-split "s" #'neotree-enter-horizontal-split "c" #'neotree-create-node "D" #'neotree-delete-node "g" #'neotree-refresh "r" #'neotree-rename-node "R" #'neotree-refresh "h" #'+neotree/collapse-or-up "l" #'+neotree/expand-or-open "n" #'neotree-next-line "p" #'neotree-previous-line "N" #'neotree-select-next-sibling-node "P" #'neotree-select-previous-sibling-node) ;; Refactoring and compilation (:map prog-mode-map "M-RET" #'emr-show-refactor-menu) (:map hs-minor-mode-map "C-c " #'hs-hide-block "C-c " #'hs-show-block) (:after cc-mode (:map c++-mode-map "M-RET" #'srefactor-refactor-at-point) (:map c-mode-map "M-RET" #'srefactor-refactor-at-point)) (:after help-mode ;; (:map help-map ;; "e" 'doom/popup-toggle-messages) (:map help-mode-map "o" #'ace-link-help ">" #'help-go-forward "<" #'help-go-back)) (:after info (:map Info-mode-map "o" #'ace-link-info)) ;; yasnippet (:after yasnippet ;; keymap while yasnippet is active (:map yas-minor-mode-map "" #'yas-insert-snippet) ;; keymap while editing an inserted snippet (:map yas-keymap "C-e" #'+snippets/goto-end-of-field "C-a" #'+snippets/goto-start-of-field "" #'+snippets/goto-end-of-field "" #'+snippets/goto-start-of-field "" #'+snippets/delete-to-start-of-field [backspace] #'+snippets/delete-backward-char [delete] #'+snippets/delete-forward-char-or-field)) ;; flycheck (:after flycheck (:map flycheck-error-list-mode-map "C-n" #'flycheck-error-list-next-error "C-p" #'flycheck-error-list-previous-error "RET" #'flycheck-error-list-goto-error)) ;; flyspell (:after flyspell (:map flyspell-mode-map "C-;" nil ; Do not override "C-M-i" #'flyspell-auto-correct-previous-word)) ;; ivy (:after ivy (:map ivy-minibuffer-map "TAB" #'ivy-alt-done "C-g" #'keyboard-escape-quit)) ;; magit (:after magit (:map magit-mode-map ;; Don't let Tab binding in my bindings conflict with Tab in magit "" #'magit-section-toggle)) ;; latex ;; (:after latex ;; (:when (not (or (null boy--synonyms-key) (string= "" boy--synonyms-key))) ;; ("C-c y" #'www-synonyms-insert-synonym)) ;; (:map LaTeX-mode-map ;; ;; Do not overwrite my goto-last-change ;; "C-c ." nil)) ;; ;; Replace LaTeX-section with a version that inserts '%' after the section macro ;; ;; Run LatexMk without asking ;; ein notebooks (:after ein:notebook-multilang (:map ein:notebook-multilang-mode-map "C-c h" #'+ein/hydra/body)) ) (which-key-add-key-based-replacements "C-c !" "checking") (which-key-add-key-based-replacements "C-c d p" "doom popups") (which-key-add-key-based-replacements "C-c d" "doom") (which-key-add-key-based-replacements "C-c e" "perspective") (which-key-add-key-based-replacements "C-c m" "mail") (which-key-add-key-based-replacements "C-c o a" "org agenda") (which-key-add-key-based-replacements "C-c o e" "org export") (which-key-add-key-based-replacements "C-c o" "org") (which-key-add-key-based-replacements "C-c p" "projectile") (which-key-add-key-based-replacements "C-c s" "snippets") (which-key-add-key-based-replacements "C-c v" "versioning") (which-key-add-key-based-replacements "C-c w" "workspace") ;; Place your private configurnation here ;; (global-unset-key (kbd "C-z")) (defun other-docview-buffer-scroll-down () "There are two visible buffers, one for taking notes and one for displaying PDF, and the focus is on the notes buffer. This command moves the PDF buffer forward." (interactive) (let* ((wind (other-window-for-scrolling)) (mode (with-selected-window wind major-mode))) (if (eq mode 'pdf-view-mode) (with-selected-window wind (pdf-view-next-line-or-next-page 5)) (scroll-other-window 5)) (if (eq mode 'doc-view-mode) (with-selected-window wind (doc-view-scroll-up-or-next-page))))) (defun other-docview-buffer-scroll-up () "There are two visible buffers, one for taking notes and one for displaying PDF, and the focus is on the notes buffer. This command moves the PDF buffer forward." (interactive) (let* ((wind (other-window-for-scrolling)) (mode (with-selected-window wind major-mode))) (if (eq mode 'pdf-view-mode) (with-selected-window wind (pdf-view-previous-line-or-previous-page 5)) (scroll-other-window-down 5)) (if (eq mode 'doc-view-mode) (with-selected-window wind (doc-view-scroll-down-or-previous-page))))) (global-set-key (kbd "C-M-v") 'other-docview-buffer-scroll-down) (global-set-key (kbd "C-M-S-v") 'other-docview-buffer-scroll-up) ;; (add-hook! prog-mode (hs-minor-mode)) (setq doom-font (font-spec :family "DejaVu Sans Mono" :size 15) doom-variable-pitch-font (font-spec :family "DejaVu Sans") doom-unicode-font (font-spec :family "DejaVu Sans Mono") doom-big-font (font-spec :family "DejaVu Sans Mono" :size 15)) (setq reftex-default-bibliography '("~/Projects/Org/bibliography/references.bib")) ;; see org-ref for use of these variables (setq org-ref-bibliography-notes "~/Projects/Org/bibliography/notes.org" org-ref-default-bibliography '("~/Projects/Org/bibliography/references.bib") org-ref-pdf-directory "~/Projects/Org/bibliography/bibtex-pdfs/") (setq doom-theme 'doom-molokai) (setq doom-neotree-file-icons t) ;; (defun other-docview-buffer-scroll-up () ;; "There are two visible buffers, one for taking notes and one ;; for displaying PDF, and the focus is on the notes buffer. This ;; command moves the PDF buffer backward." ;; (interactive) ;; (other-window 1) ;; (doc-view-scroll-down-or-previous-page) ;; (other-window 1)) ;; (defun my/scroll-other-window () ;; (interactive) ;; (let* ((wind (other-window-for-scrolling)) ;; (mode (with-selected-window wind major-mode))) ;; (if (eq mode 'pdf-view-mode) ;; (with-selected-window wind ;; (pdf-view-next-line-or-next-page 2)) ;; (scroll-other-window 2)))) ;; (defun my/scroll-other-window-down () ;; (interactive) ;; (let* ((wind (other-window-for-scrolling)) ;; (mode (with-selected-window wind major-mode))) ;; (if (eq mode 'pdf-view-mode) ;; (with-selected-window wind ;; (progn ;; (pdf-view-previous-line-or-previous-page 2) ;; (other-window 1))) ;; (scroll-other-window-down 2)))) (after! ein (setq ein:slice-image nil)) ```

init.el

```elisp ;;; init.el -*- lexical-binding: t; -*- ;; Copy this file to ~/.doom.d/init.el or ~/.config/doom/init.el ('doom install' ;; will do this for you). The `doom!' block below controls what modules are ;; enabled and in what order they will be loaded. Remember to run 'doom refresh' ;; after modifying it. ;; ;; More information about these modules (and what flags they support) can be ;; found in modules/README.org. (doom! :input ;;chinese ;;japanese :completion company ; the ultimate code completion backend ;;helm ; the *other* search engine for love and life ido ; the other *other* search engine... ivy ; a search engine for love and life :ui ;;deft ; notational velocity for Emacs doom ; what makes DOOM look the way it does doom-dashboard ; a nifty splash screen for Emacs doom-quit ; DOOM quit-message prompts when you quit Emacs ;;fill-column ; a `fill-column' indicator hl-todo ; highlight TODO/FIXME/NOTE/DEPRECATED/HACK/REVIEW ;;hydra ;;indent-guides ; highlighted indent columns modeline ; snazzy, Atom-inspired modeline, plus API nav-flash ; blink the current line after jumping ;;neotree ; a project drawer, like NERDTree for vim ophints ; highlight the region an operation acts on (popup ; tame sudden yet inevitable temporary windows +all ; catch all popups that start with an asterix +defaults) ; default popup rules ;; pretty-code ; replace bits of code with pretty symbols ;; tabs ; an tab bar for Emacs treemacs ; a project drawer, like neotree but cooler ;;unicode ; extended unicode support for various languages vc-gutter ; vcs diff in the fringe vi-tilde-fringe ; fringe tildes to mark beyond EOB window-select ; visually switch windows workspaces ; tab emulation, persistence & separate workspaces :editor ;;(evil +everywhere); come to the dark side, we have cookies file-templates ; auto-snippets for empty files ;;god ; run Emacs commands without modifier keys fold ; (nigh) universal code folding (format +onsave) ; automated prettiness ;;lispy ; vim for lisp, for people who dont like vim multiple-cursors ; editing in many places at once ;;objed ; text object editing for the innocent ;;parinfer ; turn lisp into python, sort of rotate-text ; cycle region at point between text candidates snippets ; my elves. They type so I don't have to ;;word-wrap ; soft wrapping with language-aware indent :emacs dired ; making dired pretty [functional] electric ; smarter, keyword-based electric-indent vc ; version-control and Emacs, sitting in a tree :term ;;eshell ; a consistent, cross-platform shell (WIP) ;;shell ; a terminal REPL for Emacs ;;term ; terminals in Emacs ;;vterm ; another terminals in Emacs :tools ;;ansible ;;debugger ; FIXME stepping through code, to help you add bugs ;;direnv docker editorconfig ; let someone else argue about tabs vs spaces ein ; tame Jupyter notebooks with emacs eval ; run code, run (also, repls) flycheck ; tasing you for every semicolon you forget flyspell ; tasing you for misspelling mispelling gist ; interacting with github gists (lookup ; helps you navigate your code and documentation +docsets) ; ...or in Dash docsets locally lsp ;;macos ; MacOS-specific commands magit ; a git porcelain for Emacs ;;make ; run make tasks from Emacs ;;pass ; password manager for nerds pdf ; pdf enhancements ;;prodigy ; FIXME managing external services & code builders ;;rgb ; creating color strings ;;terraform ; infrastructure as code ;;tmux ; an API for interacting with tmux ;;upload ; map local to remote projects via ssh/ftp ;;wakatime :lang ;;agda ; types of types of types of types... ;;assembly ; assembly for fun or debugging (cc +lsp) ; C/C++/Obj-C madness ;;clojure ; java with a lisp ;;common-lisp ; if you've seen one lisp, you've seen them all ;;coq ; proofs-as-programs ;;crystal ; ruby at the speed of c csharp ; unity, .NET, and mono shenanigans data ; config/data formats ;;erlang ; an elegant language for a more civilized age ;;elixir ; erlang done right ;;elm ; care for a cup of TEA? emacs-lisp ; drown in parentheses ;;ess ; emacs speaks statistics ;;faust ; dsp, but you get to keep your soul ;;fsharp ; ML stands for Microsoft's Language go ; the hipster dialect ;;(haskell +intero) ; a language that's lazier than I am ;;hy ; readability of scheme w/ speed of python ;;idris ; ;;(java +meghanada) ; the poster child for carpal tunnel syndrome ;;javascript ; all(hope(abandon(ye(who(enter(here)))))) ;;julia ; a better, faster MATLAB ;;kotlin ; a better, slicker Java(Script) latex ; writing papers in Emacs has never been so fun ;;lean ;;ledger ; an accounting system in Emacs ;;lua ; one-based indices? one-based indices markdown ; writing docs for people to ignore ;;nim ; python + lisp at the speed of c ;;nix ; I hereby declare "nix geht mehr!" ;;ocaml ; an objective camel (org ; organize your plain life in plain text +dragndrop ; drag & drop files/images into org buffers ;+hugo ; use Emacs for hugo blogging +ipython ; ipython/jupyter support for babel +pandoc ; export-with-pandoc support ;+pomodoro ; be fruitful with the tomato technique +present) ; using org-mode for presentations ;;perl ; write code no one else can comprehend ;;php ; perl's insecure younger brother ;;plantuml ; diagrams for confusing people more ;;purescript ; javascript, but functional python ;;+lsp) ; beautiful is better than ugly ;;qt ; the 'cutest' gui framework ever ;;racket ; a DSL for DSLs ;;rest ; Emacs as a REST client ;;ruby ; 1.step {|i| p "Ruby is #{i.even? ? 'love' : 'life'}"} ;;rust ; Fe2O3.unwrap().unwrap().unwrap().unwrap() ;;scala ; java, but good ;;scheme ; a fully conniving family of lisps sh ; she sells {ba,z,fi}sh shells on the C xor ;;solidity ; do you need a blockchain? No. ;;swift ; who asked for emoji variables? ;;terra ; Earth and Moon in alignment for performance. ;;web ; the tubes :email (mu4e +gmail) ; WIP ;;notmuch ; WIP ;;(wanderlust +gmail) ; WIP ;; Applications are complex and opinionated modules that transform Emacs ;; toward a specific purpose. They may have additional dependencies and ;; should be loaded late. :app ;;calendar ;;irc ; how neckbeards socialize ;;rss +org ; emacs as an RSS reader ;;twitter ; twitter client https://twitter.com/vnought (write ; emacs as a word processor (latex + org + markdown) +wordnut ; wordnet (wn) search +langtool) ; a proofreader (grammar/style check) for Emacs :collab ;;floobits ; peer programming for a price ;;impatient-mode ; show off code over HTTP :config ;; For literate config users. This will tangle+compile a config.org ;; literate config in your `doom-private-dir' whenever it changes. ;;literate ;; The default module sets reasonable defaults for Emacs. It also ;; provides a Spacemacs-inspired keybinding scheme and a smartparens ;; config. Use it as a reference for your own modules. ;; default +smartparens) (default +bindings +smartparens)) (use-package-hook! org-mode :pre-config (org-babel-do-load-languages 'org-babel-load-languages '((C . t))) :init (setq org-latex-pdf-process '("latexmk -pdflatex='%latex -shell-escape -interaction nonstopmode' -pdf -output-directory=%o -f %f")) t) ;; (def-package! company-jedi ;; :hook ;; ('python-mode-hook 'jedi:setup) ;; :config ;; (add-to-list 'company-jedi company-backends) ;; (setq jedi:complete-on-dot t)) ;; (def-package! pdf-tools ;; :if (string= (getenv "GUI") "t") ;; :mode ("\\.pdf$" . pdf-view-mode) ;; :init (load "pdf-tools-autoloads" nil t) ;; :config (pdf-tools-install)) (use-package-hook! company :post-config (setq company-idle-delay 0.2 company-minimum-prefix-length 3) t) (use-package! company-jedi :disabled :hook (python-mode . 'jedi:setup) :config (add-to-list 'company-jedi company-backends) (setq jedi:complete-on-dot t)) (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. '(ein:slice-image nil) '(org-latex-listings (quote minted)) '(org-latex-listings-langs (quote ((emacs-lisp "Lisp") (lisp "Lisp") (clojure "Lisp") (c "C") (cc "C++") (fortran "fortran") (perl "Perl") (cperl "Perl") (python "Python") (ruby "Ruby") (html "HTML") (xml "XML") (tex "TeX") (latex "[LaTeX]TeX") (shell-script "bash") (gnuplot "Gnuplot") (ocaml "Caml") (caml "Caml") (sql "SQL") (sqlite "sql") (makefile "make") (R "r") (Prolog "Prolog")))) '(org-latex-packages-alist (quote (("" "minted" t)))) '(org-latex-pdf-process (quote ("%latex -interaction -shell-escape nonstopmode -output-directory %o %f" "%latex -interaction nonstopmode -output-directory %o %f" "%latex -interaction nonstopmode -output-directory %o %f")))) (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. ) ```
hlissner commented 4 years ago

Looks like a little logic error. As of 51bb3a2 this should be resolved. Let me know if that isn't the case and I'll reopen it. Thanks for bringing it to my attention!