fuco1 / .emacs.d Goto Github PK
View Code? Open in Web Editor NEWMy emacs config
License: MIT License
My emacs config
License: MIT License
References
(defun check-hook-fn ()
(let ((parent (org-element-context)))
(while (and parent
(not (eq 'plain-list (org-element-type parent))))
(setq parent (org-element-property :parent parent)))
(when (-contains? (org-element-property :attr_org parent) ":radio")
(save-excursion
(--each (org-element-property :structure parent)
(goto-char (car it))
(when (re-search-forward "\\[X\\]" (line-end-position) t)
(replace-match "[ ]"))))
(save-excursion
(beginning-of-line)
(when (re-search-forward "\\[ \\]" (line-end-position) t)
(replace-match "[X]"))))))
Also add the reference methods to get the picked value, will probably need a bit of work.
Usage
#+attr_org: :radio
#+name: test
- [ ] aasd
- [ ] Lorem ipsum dolor sit amet, consectetuer adipiscing
- [X] c
- [ ] dd
Should be configurable with shackle.
Oops. This was a smartparens issue that did not end up in the correct repository at all! I don't think I can delete an issue I have opened, so I hope this is not an issue. Sorry!
This is where I meant to post it: Fuco1/smartparens#856
Thank you for creating smartparens though, and being a good open source maintainer!
Probably as a vendor submodule, see
https://raw.githubusercontent.com/steckerhalter/ob-php/master/ob-php.el
Something simple like buffer local function and a unified binding + setup for various languages/modes.
Right now we use:
find-function
(emacs) but this has not great way to pop back. Also queries for the input.It seems to print the default directory always in the output along with the found results.
Simple but fixes a very annoying pattern... it can also serve as a little "cook-book" example of how to advice interactive functions to be more "dwim"
Should be configurable with shackle.
We could use something reasonable like spacemacs has: https://github.com/syl20bnr/spacemacs/blob/master/layers/%2Bdistributions/spacemacs-base/keybindings.el
Maybe add some simple invalidation logic on top.
Each function in its own file? Use some preprocessor to split the definitions and add requires automatically?
The old system should be phased out as it is obsolete and not really that flexible.
Also add a backward version.
Then submit it to https://github.com/yoshiki/yaml-mode/blob/master/yaml-mode.el
The first line of org-projects.el is as follows:
;;; org-package.el --- Additional code for managing packages
but I think you meant
;;; org-project.el --- Additional code for managing projects
I like probably so many many others have been configuring a GTD system within org based heavily on Bernt Hansen's great article at http://doc.norang.ca/org-mode.html but then I discovered your configuration and this file and I like how you refactored (is that the correct term? - I'm slowly trying to learn how to programme) many of his functions. I've been trying to 'modernise' his article as it has not been updated since 2015 to account for some changes in org but also to take advantage of new packages such as org-super-agenda and this file is proving very helpful. I wondered have you ever considered creating an org-gtd.el based on this file and perhaps your org-defs.el. Anyway, thanks for your time.
I have to repeat the same code all over again and again in my personal configuration to update paths to use local installations.
(example)
;; inside setup hook
(-when-let (root (locate-dominating-file default-directory "node_modules"))
(setq-local flycheck-javascript-eslint-executable (concat root "/node_modules/.bin/eslint"))
(setq-local flycheck-javascript-flow-executable (concat root "/node_modules/.bin/flow"))
(setq-local flycheck-javascript-flow-coverage-executable (concat root "/node_modules/.bin/flow")))
We should detect that this is going on and adjust the executables accordingly automatically. Virtually never would the user want to run any globally available executable if it is locally bundled with the project.
While something like this already seems to exist for cask other tools are missing.
Is this something we would want to push to the flycheck org as separate packages or even to flycheck itself? I think there's a great value in having these things just working without the users having to mess around with exec paths and stuff.
Lot of things has changed since the last time, it might be worth to set it up properly (especially with things like LSP now).
Start with 3 window setup
+------+-----+
| | |
| A | |
| | |
+------+ |
| | |
| B | |
| | |
+------+-----+
After quitting, A's buffer is closed and I end up with a simple vertical split.
Maybe we don't have to use tmux for this and just launch multiple ansi-term buffers instead. Either could work I think.
Especially the use of directory variables, that is soemthing people might find interesting.
Right now I have my own definition but this might be better: https://github.com/emacs-lsp/lsp-php
In numbered lists or checkbox lists ret makes a new bullet but in a regular list of one item
- foo
it makes a headline instead
Lots of unused code and nonsensical functions.
When this TatriX/pomidor#21 is resolved edit the capture template (C-M-r r
) to automatically add :pomodoro:
tag.
Somehow like https://github.com/simeji/jid but inside Emacs.
Put an overlay on the buffer and display the result of the query. With RET
replace the region, with C-g
exit.
This will make it possible to install the configuration without having the dev stuff present.
Since we put the /dev directory in front of the load-path
adding the projects later will load the dev versions instead of the packaged code.
See compile-eslint and how we look back for the filename on each error for each section.
Ideally keep a targetheadline -> marker list and only update files that changed on disk from the last change. It should all happen automatically. Should be compatible with org-refile-get-targets
and org-refile-targets
.
Publish as a package then?
Wow, amazing!
(font-lock-add-keywords
nil
'(("(\\(elsa\\) +\\(\\(?:\\sw\\|\\s_\\)+\\) +::"
(1 font-lock-keyword-face)
(2 font-lock-function-name-face)
("\\_<\\(\\(?:\\sw\\|\\s_\\)+\\)\\_>"
(save-excursion (up-list) (point))
(progn (backward-up-list) (down-list))
(0 font-lock-type-face))
("->" (save-excursion (up-list) (point))
nil
(0 font-lock-variable-name-face t)))))
on this:
(elsa use-foo :: string? -> string -> string)
Also mention how to safely set safe values for the command function.
So that the symbol tokens are colorized with their respecting color.
For example where we call json-mode
we actually want json-mode
+ json-mode-beautify
, so let's set up a function that does that and then put it in the alist instead.
See my-scratch-autodetect-mode
and custom mode handling.
We will also need to traverse the alist and replace the values added by other modes. Or maybe hook to the mode function so we don't have to bother with external code.
rainbow-colorize-match
should not put the properties itself, rather it should only return the list and let font-lock do it.
Contact https://julien.danjou.info/about/ about a patch because there is no github repo where we could submit a patch and fuck emacs devel ML.
See a0f90c6
We should be able to refile a TODO/NEXT into a DONE project and if we do that change the status to TODO so it pops up in the unscheduled/projects with no NEXT tasks.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.