rogersjcaleb

Untitled

Feb 24th, 2020
734
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 25.71 KB | None | 0 0
  1. ;; -*- mode: emacs-lisp -*-
  2. ;; This file is loaded by Spacemacs at startup.
  3. ;; It must be stored in your home directory.
  4.  
  5. (defun dotspacemacs/layers ()
  6.   "Configuration Layers declaration.
  7. You should not put any user code in this function besides modifying the variable
  8. values."
  9.   (setq-default
  10.    ;; Base distribution to use. This is a layer contained in the directory
  11.    ;; `+distribution'. For now available distributions are `spacemacs-base'
  12.    ;; or `spacemacs'. (default 'spacemacs)
  13.    dotspacemacs-distribution 'spacemacs
  14.    ;; Lazy installation of layers (i.e. layers are installed only when a file
  15.    ;; with a supported type is opened). Possible values are `all', `unused'
  16.    ;; and `nil'. `unused' will lazy install only unused layers (i.e. layers
  17.    ;; not listed in variable `dotspacemacs-configuration-layers'), `all' will
  18.    ;; lazy install any layer that support lazy installation even the layers
  19.    ;; listed in `dotspacemacs-configuration-layers'. `nil' disable the lazy
  20.    ;; installation feature and you have to explicitly list a layer in the
  21.    ;; variable `dotspacemacs-configuration-layers' to install it.
  22.    ;; (default 'unused)
  23.    dotspacemacs-enable-lazy-installation 'unused
  24.    ;; If non-nil then Spacemacs will ask for confirmation before installing
  25.    ;; a layer lazily. (default t)
  26.    dotspacemacs-ask-for-lazy-installation t
  27.    ;; If non-nil layers with lazy install support are lazy installed.
  28.    ;; List of additional paths where to look for configuration layers.
  29.    ;; Paths must have a trailing slash (i.e. `~/.mycontribs/')
  30.    dotspacemacs-configuration-layer-path '()
  31.    ;; List of configuration layers to load.
  32.    dotspacemacs-configuration-layers
  33.    '(
  34.      rust
  35.      yaml
  36.      go
  37.      ;; ----------------------------------------------------------------
  38.      ;; Example of useful layers you may want to use right away.
  39.      ;; Uncomment some layer names and press <SPC f e R> (Vim style) or
  40.      ;; <M-m f e R> (Emacs style) to install them.
  41.      ;; ----------------------------------------------------------------
  42.      helm
  43.      (auto-completion :variables
  44.                       auto-completion-return-key-behavior 'nil
  45.                       auto-completion-tab-key-behavior 'cycle
  46.                       auto-completion-enable-sort-by-usage t
  47.                       auto-completion-enable-help-tooltip 'manual
  48.                       auto-completion-private-snippets-directory nil )
  49.      better-defaults
  50.      emacs-lisp
  51.      git
  52.      markdown
  53.      org
  54.      (shell :variables
  55.            shell-default-height 30
  56.            shell-default-position 'bottom)
  57.      spell-checking
  58.      c-c++
  59.      semantic
  60.      syntax-checking
  61.      version-control
  62.      javascript
  63.      python
  64.      sql
  65.      html
  66.      typescript
  67.      erc
  68.      org-roam
  69.      )
  70.    ;; List of additional packages that will be installed without being
  71.    ;; wrapped in a layer. If you need some configuration for these
  72.    ;; packages, then consider creating a layer. You can also put the
  73.    ;; configuration in `dotspacemacs/user-config'.
  74.    dotspacemacs-additional-packages '()
  75.    ;; A list of packages that cannot be updated.
  76.    dotspacemacs-frozen-packages '()
  77.    ;; A list of packages that will not be installed and loaded.
  78.    dotspacemacs-excluded-packages '()
  79.    ;; Defines the behaviour of Spacemacs when installing packages.
  80.    ;; Possible values are `used-only', `used-but-keep-unused' and `all'.
  81.    ;; `used-only' installs only explicitly used packages and uninstall any
  82.    ;; unused packages as well as their unused dependencies.
  83.    ;; `used-but-keep-unused' installs only the used packages but won't uninstall
  84.    ;; them if they become unused. `all' installs *all* packages supported by
  85.    ;; Spacemacs and never uninstall them. (default is `used-only')
  86.    dotspacemacs-install-packages 'used-only))
  87.  
  88. (defun dotspacemacs/init ()
  89.   "Initialization function.
  90. This function is called at the very startup of Spacemacs initialization
  91. before layers configuration.
  92. You should not put any user code in there besides modifying the variable
  93. values."
  94.   ;; This setq-default sexp is an exhaustive list of all the supported
  95.   ;; spacemacs settings.
  96.   (setq-default
  97.    ;; If non nil ELPA repositories are contacted via HTTPS whenever it's
  98.    ;; possible. Set it to nil if you have no way to use HTTPS in your
  99.    ;; environment, otherwise it is strongly recommended to let it set to t.
  100.    ;; This variable has no effect if Emacs is launched with the parameter
  101.    ;; `--insecure' which forces the value of this variable to nil.
  102.    ;; (default t)
  103.    dotspacemacs-elpa-https t
  104.    ;; Maximum allowed time in seconds to contact an ELPA repository.
  105.    dotspacemacs-elpa-timeout 5
  106.    ;; If non nil then spacemacs will check for updates at startup
  107.    ;; when the current branch is not `develop'. Note that checking for
  108.    ;; new versions works via git commands, thus it calls GitHub services
  109.    ;; whenever you start Emacs. (default nil)
  110.    dotspacemacs-check-for-update t
  111.    ;; If non-nil, a form that evaluates to a package directory. For example, to
  112.    ;; use different package directories for different Emacs versions, set this
  113.    ;; to `emacs-version'.
  114.    dotspacemacs-elpa-subdirectory nil
  115.    ;; One of `vim', `emacs' or `hybrid'.
  116.    ;; `hybrid' is like `vim' except that `insert state' is replaced by the
  117.    ;; `hybrid state' with `emacs' key bindings. The value can also be a list
  118.    ;; with `:variables' keyword (similar to layers). Check the editing styles
  119.    ;; section of the documentation for details on available variables.
  120.    ;; (default 'vim)
  121.    dotspacemacs-editing-style 'vim
  122.    ;; If non nil output loading progress in `*Messages*' buffer. (default nil)
  123.    dotspacemacs-verbose-loading nil
  124.    ;; Specify the startup banner. Default value is `official', it displays
  125.    ;; the official spacemacs logo. An integer value is the index of text
  126.    ;; banner, `random' chooses a random text banner in `core/banners'
  127.    ;; directory. A string value must be a path to an image format supported
  128.    ;; by your Emacs build.
  129.    ;; If the value is nil then no banner is displayed. (default 'official)
  130.    dotspacemacs-startup-banner 'official
  131.    ;; List of items to show in startup buffer or an association list of
  132.    ;; the form `(list-type . list-size)`. If nil then it is disabled.
  133.    ;; Possible values for list-type are:
  134.    ;; `recents' `bookmarks' `projects' `agenda' `todos'."
  135.    ;; List sizes may be nil, in which case
  136.    ;; `spacemacs-buffer-startup-lists-length' takes effect.
  137.    dotspacemacs-startup-lists '((recents . 5)
  138.                                 (projects . 7)
  139.                 (agenda . 5)
  140.                 (todos . 5))
  141.    ;; True if the home buffer should respond to resize events.
  142.    dotspacemacs-startup-buffer-responsive t
  143.    ;; Default major mode of the scratch buffer (default `text-mode')
  144.    dotspacemacs-scratch-mode 'text-mode
  145.    ;; List of themes, the first of the list is loaded when spacemacs starts.
  146.    ;; Press <SPC> T n to cycle to the next theme in the list (works great
  147.    ;; with 2 themes variants, one dark and one light)
  148.    dotspacemacs-themes '(
  149.                          vscode-default-high-contrast
  150.              spacemacs-dark
  151.        )
  152.    ;; If non nil the cursor color matches the state color in GUI Emacs.
  153.    dotspacemacs-colorize-cursor-according-to-state t
  154.    ;; Default font, or prioritized list of fonts. `powerline-scale' allows to
  155.    ;; quickly tweak the mode-line size to make separators look not too crappy.
  156.    dotspacemacs-default-font '("FiraCode-Normal"
  157.                                :size 14
  158.                                :weight normal
  159.                                :width normal
  160.                                :powerline-scale 1.1)
  161.    ;; The leader key
  162.    dotspacemacs-leader-key "SPC"
  163.    ;; The key used for Emacs commands (M-x) (after pressing on the leader key).
  164.    ;; (default "SPC")
  165.    dotspacemacs-emacs-command-key "SPC"
  166.    ;; The key used for Vim Ex commands (default ":")
  167.    dotspacemacs-ex-command-key ":"
  168.    ;; The leader key accessible in `emacs state' and `insert state'
  169.    ;; (default "M-m")
  170.    dotspacemacs-emacs-leader-key "M-m"
  171.    ;; Major mode leader key is a shortcut key which is the equivalent of
  172.    ;; pressing `<leader> m`. Set it to `nil` to disable it. (default ",")
  173.    dotspacemacs-major-mode-leader-key ","
  174.    ;; Major mode leader key accessible in `emacs state' and `insert state'.
  175.    ;; (default "C-M-m")
  176.    dotspacemacs-major-mode-emacs-leader-key "C-M-m"
  177.    ;; These variables control whether separate commands are bound in the GUI to
  178.    ;; the key pairs C-i, TAB and C-m, RET.
  179.    ;; Setting it to a non-nil value, allows for separate commands under <C-i>
  180.    ;; and TAB or <C-m> and RET.
  181.    ;; In the terminal, these pairs are generally indistinguishable, so this only
  182.    ;; works in the GUI. (default nil)
  183.    dotspacemacs-distinguish-gui-tab nil
  184.    ;; If non nil `Y' is remapped to `y$' in Evil states. (default nil)
  185.    dotspacemacs-remap-Y-to-y$ nil
  186.    ;; If non-nil, the shift mappings `<' and `>' retain visual state if used
  187.    ;; there. (default t)
  188.    dotspacemacs-retain-visual-state-on-shift t
  189.    ;; If non-nil, J and K move lines up and down when in visual mode.
  190.    ;; (default nil)
  191.    dotspacemacs-visual-line-move-text nil
  192.    ;; If non nil, inverse the meaning of `g' in `:substitute' Evil ex-command.
  193.    ;; (default nil)
  194.    dotspacemacs-ex-substitute-global nil
  195.    ;; Name of the default layout (default "Default")
  196.    dotspacemacs-default-layout-name "Default"
  197.    ;; If non nil the default layout name is displayed in the mode-line.
  198.    ;; (default nil)
  199.    dotspacemacs-display-default-layout nil
  200.    ;; If non nil then the last auto saved layouts are resume automatically upon
  201.    ;; start. (default nil)
  202.    dotspacemacs-auto-resume-layouts nil
  203.    ;; Size (in MB) above which spacemacs will prompt to open the large file
  204.    ;; literally to avoid performance issues. Opening a file literally means that
  205.    ;; no major mode or minor modes are active. (default is 1)
  206.    dotspacemacs-large-file-size 1
  207.    ;; Location where to auto-save files. Possible values are `original' to
  208.    ;; auto-save the file in-place, `cache' to auto-save the file to another
  209.    ;; file stored in the cache directory and `nil' to disable auto-saving.
  210.    ;; (default 'cache)
  211.    dotspacemacs-auto-save-file-location 'cache
  212.    ;; Maximum number of rollback slots to keep in the cache. (default 5)
  213.    dotspacemacs-max-rollback-slots 5
  214.    ;; If non nil, `helm' will try to minimize the space it uses. (default nil)
  215.    dotspacemacs-helm-resize nil
  216.    ;; if non nil, the helm header is hidden when there is only one source.
  217.    ;; (default nil)
  218.    dotspacemacs-helm-no-header nil
  219.    ;; define the position to display `helm', options are `bottom', `top',
  220.    ;; `left', or `right'. (default 'bottom)
  221.    dotspacemacs-helm-position 'bottom
  222.    ;; Controls fuzzy matching in helm. If set to `always', force fuzzy matching
  223.    ;; in all non-asynchronous sources. If set to `source', preserve individual
  224.    ;; source settings. Else, disable fuzzy matching in all sources.
  225.    ;; (default 'always)
  226.    dotspacemacs-helm-use-fuzzy 'always
  227.    ;; If non nil the paste micro-state is enabled. When enabled pressing `p`
  228.    ;; several times cycle between the kill ring content. (default nil)
  229.    dotspacemacs-enable-paste-transient-state nil
  230.    ;; Which-key delay in seconds. The which-key buffer is the popup listing
  231.    ;; the commands bound to the current keystroke sequence. (default 0.4)
  232.    dotspacemacs-which-key-delay 0.4
  233.    ;; Which-key frame position. Possible values are `right', `bottom' and
  234.    ;; `right-then-bottom'. right-then-bottom tries to display the frame to the
  235.    ;; right; if there is insufficient space it displays it at the bottom.
  236.    ;; (default 'bottom)
  237.    dotspacemacs-which-key-position 'bottom
  238.    ;; If non nil a progress bar is displayed when spacemacs is loading. This
  239.    ;; may increase the boot time on some systems and emacs builds, set it to
  240.    ;; nil to boost the loading time. (default t)
  241.    dotspacemacs-loading-progress-bar t
  242.    ;; If non nil the frame is fullscreen when Emacs starts up. (default nil)
  243.    ;; (Emacs 24.4+ only)
  244.    dotspacemacs-fullscreen-at-startup nil
  245.    ;; If non nil `spacemacs/toggle-fullscreen' will not use native fullscreen.
  246.    ;; Use to disable fullscreen animations in OSX. (default nil)
  247.    dotspacemacs-fullscreen-use-non-native nil
  248.    ;; If non nil the frame is maximized when Emacs starts up.
  249.    ;; Takes effect only if `dotspacemacs-fullscreen-at-startup' is nil.
  250.    ;; (default nil) (Emacs 24.4+ only)
  251.    dotspacemacs-maximized-at-startup nil
  252.    ;; A value from the range (0..100), in increasing opacity, which describes
  253.    ;; the transparency level of a frame when it's active or selected.
  254.    ;; Transparency can be toggled through `toggle-transparency'. (default 90)
  255.    dotspacemacs-active-transparency 90
  256.    ;; A value from the range (0..100), in increasing opacity, which describes
  257.    ;; the transparency level of a frame when it's inactive or deselected.
  258.    ;; Transparency can be toggled through `toggle-transparency'. (default 90)
  259.    dotspacemacs-inactive-transparency 90
  260.    ;; If non nil show the titles of transient states. (default t)
  261.    dotspacemacs-show-transient-state-title t
  262.    ;; If non nil show the color guide hint for transient state keys. (default t)
  263.    dotspacemacs-show-transient-state-color-guide t
  264.    ;; If non nil unicode symbols are displayed in the mode line. (default t)
  265.    dotspacemacs-mode-line-unicode-symbols t
  266.    ;; If non nil smooth scrolling (native-scrolling) is enabled. Smooth
  267.    ;; scrolling overrides the default behavior of Emacs which recenters point
  268.    ;; when it reaches the top or bottom of the screen. (default t)
  269.    dotspacemacs-smooth-scrolling t
  270.    ;; Control line numbers activation.
  271.    ;; If set to `t' or `relative' line numbers are turned on in all `prog-mode' and
  272.    ;; `text-mode' derivatives. If set to `relative', line numbers are relative.
  273.    ;; This variable can also be set to a property list for finer control:
  274.    ;; '(:relative nil
  275.    ;;   :disabled-for-modes dired-mode
  276.    ;;                       doc-view-mode
  277.    ;;                       markdown-mode
  278.    ;;                       org-mode
  279.    ;;                       pdf-view-mode
  280.    ;;                       text-mode
  281.    ;;   :size-limit-kb 1000)
  282.    ;; (default nil)
  283.    dotspacemacs-line-numbers nil
  284.    ;; Code folding method. Possible values are `evil' and `origami'.
  285.    ;; (default 'evil)
  286.    dotspacemacs-folding-method 'evil
  287.    ;; If non-nil smartparens-strict-mode will be enabled in programming modes.
  288.    ;; (default nil)
  289.    dotspacemacs-smartparens-strict-mode nil
  290.    ;; If non-nil pressing the closing parenthesis `)' key in insert mode passes
  291.    ;; over any automatically added closing parenthesis, bracket, quote, etc…
  292.    ;; This can be temporary disabled by pressing `C-q' before `)'. (default nil)
  293.    dotspacemacs-smart-closing-parenthesis nil
  294.    ;; Select a scope to highlight delimiters. Possible values are `any',
  295.    ;; `current', `all' or `nil'. Default is `all' (highlight any scope and
  296.    ;; emphasis the current one). (default 'all)
  297.    dotspacemacs-highlight-delimiters 'all
  298.    ;; If non nil, advise quit functions to keep server open when quitting.
  299.    ;; (default nil)
  300.    dotspacemacs-persistent-server nil
  301.    ;; List of search tool executable names. Spacemacs uses the first installed
  302.    ;; tool of the list. Supported tools are `ag', `pt', `ack' and `grep'.
  303.    ;; (default '("ag" "pt" "ack" "grep"))
  304.    dotspacemacs-search-tools '("ag" "pt" "ack" "grep")
  305.    ;; The default package repository used if no explicit repository has been
  306.    ;; specified with an installed package.
  307.    ;; Not used for now. (default nil)
  308.    dotspacemacs-default-package-repository nil
  309.    ;; Delete whitespace while saving buffer. Possible values are `all'
  310.    ;; to aggressively delete empty line and long sequences of whitespace,
  311.    ;; `trailing' to delete only the whitespace at end of lines, `changed'to
  312.    ;; delete only whitespace for changed lines or `nil' to disable cleanup.
  313.    ;; (default nil)
  314.    dotspacemacs-whitespace-cleanup nil
  315.    ))
  316.  
  317. (defun dotspacemacs/user-init ()
  318.   "Initialization function for user code.
  319. It is called immediately after `dotspacemacs/init', before layer configuration
  320. executes.
  321. This function is mostly useful for variables that need to be set
  322. before packages are loaded. If you are unsure, you should try in setting them in
  323. `dotspacemacs/user-config' first."
  324.   (add-to-list 'custom-theme-load-path "~/.emacs.d/private/themes/")
  325.   )
  326.  
  327. (defun dotspacemacs/user-config ()
  328.   "Configuration function for user code.
  329. This function is called at the very end of Spacemacs initialization after
  330. layers configuration.
  331. This is the place where most of your configurations should be done. Unless it is
  332. explicitly specified that a variable should be set before a package is loaded,
  333. you should place your code here."
  334.  
  335.  
  336. (add-hook 'before-save-hook 'delete-trailing-whitespace)
  337. (setq make-backup-files nil) ; stop creating backup~ files
  338. (setq auto-save-default nil) ; stop creating #autosave# files
  339. (setq create-lockfiles nil)
  340. (setq org-directory "~/Dropbox/org")
  341.  
  342. (with-eval-after-load 'org
  343.   (org-defkey org-mode-map [(meta return)] 'org-meta-return)  ;; The actual fix
  344.   (setq org-default-notes-file (concat org-directory "/inbox.org"))
  345.   (setq org-agenda-files '("~/Dropbox/org/"))
  346.   (setq org-projectile-projects-file
  347.         (concat org-directory "/projects.org"))
  348.   (setq org-capture-templates
  349.         `(("i" "inbox" entry (file ,(concat org-directory "/inbox.org"))
  350.            "* TODO %?")
  351.           ))
  352.  
  353.   (setq org-refile-targets '(
  354.                              ("projects.org" :maxlevel . 1)))
  355.   (setq org-columns-default-format "%40ITEM(Task) %Effort(EE){:} %CLOCKSUM(Time Spent) %SCHEDULED(Scheduled) %DEADLINE(Deadline)")
  356.  
  357.  
  358.   )
  359.   (setq org-agenda-todo-view
  360.         `("Q" "Agenda"
  361.           ((agenda ""
  362.                    ((org-agenda-span 'day)
  363.                     (org-deadline-warning-days 365)))
  364.            (todo "TODO"
  365.                  ((org-agenda-overriding-header "To Refile")
  366.                   (org-agenda-files '(,(concat org-directory "/inbox.org")))))
  367.            (todo "NEXT"
  368.                  ((org-agenda-overriding-header "In Progress")
  369.                   (org-agenda-files '(
  370.                                       ,(concat org-directory "/projects.org")
  371.                                       ;; ,(concat org-directory "/next.org")
  372.                                       ))
  373.                   ;; (org-agenda-skip-function '(org-agenda-skip-entry-if 'deadline 'scheduled))
  374.                   ))
  375.            (todo "TODO"
  376.                  ((org-agenda-overriding-header "Projects")
  377.                   (org-agenda-files '(,(concat org-directory "/projects.org")))
  378.                   ;; (org-agenda-skip-function #'jethro/org-agenda-skip-all-siblings-but-first)
  379.                   ))
  380.            nil)))
  381.  
  382.   (setq org-agenda-custom-commands
  383.         '(("Q" "Agenda"
  384.           ((agenda ""
  385.                    ((org-agenda-span 'day)
  386.                     (org-deadline-warning-days 365)))
  387.            (todo "TODO"
  388.                  ((org-agenda-overriding-header "To Refile")
  389.                   (org-agenda-files '("~/Dropbox/org/inbox.org"))))
  390.            ;; (todo "NEXT"
  391.            ;;       ((org-agenda-overriding-header "In Progress")
  392.            ;;        (org-agenda-files '(
  393.            ;;                            ,(concat org-directory "/projects.org")
  394.            ;;                            ;; ,(concat org-directory "/next.org")
  395.            ;;                            ))
  396.            ;;        ;; (org-agenda-skip-function '(org-agenda-skip-entry-if 'deadline 'scheduled))
  397.            ;;        ))
  398.  
  399.            (todo "TODO"
  400.                  ((org-agenda-overriding-header "Life Stuff")
  401.                   (org-agenda-files '("~/Dropbox/org/Life.org"))
  402.                   ;; (org-agenda-skip-function #'jethro/org-agenda-skip-all-siblings-but-first)
  403.                   ))
  404.            (todo "TODO"
  405.                  ((org-agenda-overriding-header "Projects")
  406.                   (org-agenda-files '("~/Dropbox/org/projects.org"))
  407.                   ;; (org-agenda-skip-function #'jethro/org-agenda-skip-all-siblings-but-first)
  408.                   ))
  409.            nil))
  410.         ))
  411.  
  412.  
  413.  
  414. (setq typescript-indent-level 2)
  415. (setq js-indent-level 2)
  416. (indent-guide-global-mode)
  417. (add-to-list 'auto-mode-alist '("\\.html?\\'" . web-mode))
  418. (add-to-list 'auto-mode-alist '("\\.vue?\\'" . web-mode))
  419.  
  420. ;; ;; Fixes error with spacemacs using wrong org mode function
  421. ;; (with-eval-after-load 'org
  422. ;;   ;; Replace org-set-tags with org-set-tags-command in keybinding
  423. ;;   (spacemacs/set-leader-keys-for-major-mode 'org-mode ":" 'org-set-tags-command)
  424. ;; )
  425. (defun my-web-mode-hook ()
  426.   "Hooks for Web mode."
  427.   (setq web-mode-markup-indent-offset 2)
  428.   (setq web-mode-code-indent-offset 2)
  429.   (setq web-mode-css-indent-offset 2)
  430.   (setq web-mode-script-padding 0)
  431.   )
  432. (with-eval-after-load 'web-mode
  433.   (my-web-mode-hook))
  434. (defun big-fat-json-file ()
  435.   "Hit this when u got a fatty file"
  436.   (interactive)
  437.   (visual-line-mode -1 )
  438.   (spacemacs/disable-smooth-scrolling)
  439.   )
  440.   (defvar org-current-effort "1:00" "Current effort for agenda items.")
  441.   (defun my-org-agenda-set-effort (effort)
  442.     "Set the effort property for the current headline."
  443.     (interactive
  444.      (list (read-string (format "Effort [%s]: " org-current-effort) nil nil org-current-effort)))
  445.     (setq jethro/org-current-effort effort)
  446.     (org-agenda-check-no-diary)
  447.     (let* ((hdmarker (or (org-get-at-bol 'org-hd-marker)
  448.                          (org-agenda-error)))
  449.            (buffer (marker-buffer hdmarker))
  450.            (pos (marker-position hdmarker))
  451.            (inhibit-read-only t)
  452.            newhead)
  453.       (org-with-remote-undo buffer
  454.         (with-current-buffer buffer
  455.           (widen)
  456.           (goto-char pos)
  457.           (org-show-context 'agenda)
  458.           (funcall-interactively 'org-set-effort nil org-current-effort)
  459.           (end-of-line 1)
  460.           (setq newhead (org-get-heading)))
  461.         (org-agenda-change-all-lines newhead hdmarker))))
  462.  
  463.   (defun org-agenda-process-inbox-item ()
  464.     "Process a single item in the org-agenda."
  465.     (org-with-wide-buffer
  466.      (org-agenda-set-tags)
  467.      (org-agenda-priority)
  468.      (call-interactively 'my-org-agenda-set-effort)
  469.      (org-agenda-refile nil nil t)))
  470.  
  471.   (spacemacs/declare-prefix "o" "custom")
  472.   (spacemacs/set-leader-keys "oc" 'org-projectile-capture-for-current-project)
  473.   (spacemacs/set-leader-keys "oe" 'org-agenda-process-inbox-item)
  474.  
  475.   ;; (spacemacs/declare-prefix "ar" "org-roam")
  476.   ;; (spacemacs/set-leader-keys
  477.   ;;   "arl" 'org-roam
  478.   ;;   "art" 'org-roam-today
  479.   ;;   "arf" 'org-roam-find-file
  480.   ;;   "arg" 'org-roam-show-graph)
  481.  
  482.   ;; (spacemacs/declare-prefix-for-mode 'org-mode "mr" "org-roam")
  483.   ;; (spacemacs/set-leader-keys-for-major-mode 'org-mode
  484.   ;;   "rl" 'org-roam
  485.   ;;   "rt" 'org-roam-today
  486.   ;;   "rb" 'org-roam-switch-to-buffer
  487.   ;;   "rf" 'org-roam-find-file
  488.   ;;   "ri" 'org-roam-insert
  489.   ;;   "rg" 'org-roam-show-graph)
  490.  
  491. ;; (setq org-todo-keywords
  492. ;;       '((sequence "PENDING" "TODO" "|" "DONE" "WONTDO")))
  493. )
  494. ;; Do not write anything past this comment. This is where Emacs will
  495. ;; auto-generate custom variable definitions.
  496. (custom-set-variables
  497.  ;; custom-set-variables was added by Custom.
  498.  ;; If you edit it by hand, you could mess it up, so be careful.
  499.  ;; Your init file should contain only one such instance.
  500.  ;; If there is more than one, they won't work right.
  501.  '(org-agenda-files nil)
  502.  '(package-selected-packages
  503.    (quote
  504.     (org-roam yapfify yaml-mode xterm-color ws-butler winum which-key web-mode web-beautify volatile-highlights vi-tilde-fringe uuidgen use-package unfill toml-mode toc-org tide tagedit stickyfunc-enhance srefactor sql-indent spaceline smeargle slim-mode shell-pop scss-mode sass-mode restart-emacs rainbow-delimiters racer pyvenv pytest pyenv-mode py-isort pug-mode popwin pip-requirements persp-mode pcre2el paradox orgit org-projectile org-present org-pomodoro org-mime org-download org-bullets open-junk-file neotree mwim multi-term move-text mmm-mode markdown-toc magit-gitflow macrostep lorem-ipsum livid-mode live-py-mode linum-relative link-hint json-mode js2-refactor js-doc indent-guide hy-mode hungry-delete htmlize hl-todo highlight-parentheses highlight-numbers highlight-indentation helm-themes helm-swoop helm-pydoc helm-projectile helm-mode-manager helm-make helm-gitignore helm-flx helm-descbinds helm-css-scss helm-company helm-c-yasnippet helm-ag google-translate golden-ratio go-guru go-eldoc gnuplot gitconfig-mode gitattributes-mode git-timemachine git-messenger git-link git-gutter-fringe git-gutter-fringe+ gh-md fuzzy flyspell-correct-helm flycheck-rust flycheck-pos-tip flx-ido fill-column-indicator fancy-battery eyebrowse expand-region exec-path-from-shell evil-visualstar evil-visual-mark-mode evil-unimpaired evil-tutor evil-surround evil-search-highlight-persist evil-numbers evil-nerd-commenter evil-mc evil-matchit evil-magit evil-lisp-state evil-indent-plus evil-iedit-state evil-exchange evil-escape evil-ediff evil-args evil-anzu eval-sexp-fu eshell-z eshell-prompt-extras esh-help erc-yt erc-view-log erc-social-graph erc-image erc-hl-nicks emmet-mode elisp-slime-nav dumb-jump disaster diminish diff-hl define-word cython-mode company-web company-tern company-statistics company-quickhelp company-go company-c-headers company-anaconda column-enforce-mode coffee-mode cmake-mode clean-aindent-mode clang-format cargo auto-yasnippet auto-highlight-symbol auto-dictionary auto-compile aggressive-indent adaptive-wrap ace-window ace-link ace-jump-helm-line ac-ispell))))
  505. (custom-set-faces
  506.  ;; custom-set-faces was added by Custom.
  507.  ;; If you edit it by hand, you could mess it up, so be careful.
  508.  ;; Your init file should contain only one such instance.
  509.  ;; If there is more than one, they won't work right.
  510.  )
Add Comment
Please, Sign In to add comment