humitos / emacs-configuration Goto Github PK
View Code? Open in Web Editor NEWAll my Emacs' configuration
All my Emacs' configuration
occur
searches for occurrences in the current buffer, and elpy-
uses a regex to search only for classes and functions. So, I want to integrate them with helm.
The problem is that elpy-
and occur
open a new buffer instead of returning a list of candidates (which is needed by helm
as input).
(defun helm-elpy-occur-definitions ()
(interactive)
(helm :sources (occur "^ *\\(def\\|class\\) ")
:buffer "*helm elpy occur definition*"))
Remove it from the mode line.
Open different workspaces inside emacs:
Steps to reproduce it:
C-x C-f
C-x C-s
C-SPC
C-w
(removes it and put it in the kill ring) / the same happens when killing the line C-k
C-y
(it should yank it from the kill ring)C-x C-s
C-y
in the last step, it will yank a different thing from the kill ring nothing will be inserted since the kill ring is empty.
Only the values that were C-w
are removed from the kill ring, and this not happen in regular Text files.
Mark files as read-only if they are under some specific directories, even when the user has permission to write them: https://github.com/rolandwalker/hardhat
The idea is to use aspell
to check the spell of the comments and docstrings.
I tried something like this:
(add-hook 'elpy-mode-hook
(lambda ()
(set (make-local-variable 'ispell-personal-dictionary) (expand-file-name ".ispell.en.pws" emacs-user-directory))
(flyspell-prog-mode)))
Problems:
aspell
process per filewget http://gnu.c3sl.ufpr.br/ftp/emacs/emacs-24.5.tar.xz
tar xvf emacs-24.5.tar.xz
cd emacs-24.5
./configure # --with-jpeg=no
make -j8
The idea is to check it against 24.4, 24.5 and 25.1 at the moment by making this process automatic.
When calling helm-backup
a new window is opened and it's a disaster.
Which of them is better?
When hitting M-.
I would like to try these options in this order:
https://elpy.readthedocs.io/en/latest/ide.html#command-elpy-goto-definition
Not sure how useful it could be, but I like the idea: https://github.com/knl/name-this-color.el
I should take a look at it seems look interesting: https://github.com/antham/helm-backup
I been using this chunk of code in my .dir-locals.el
to activate an specific virtualenv once one of the file of this project is visited.
((python-mode
. (
;; use our own virtualenv for this project
(pyvenv-workon . "mozio-ondemand")
)
))
The problem with this is that activating a venv takes 1 or 2 seconds, and sometimes I'm opening a file that is inside the same project, so there is no need to re-activate it.
On the other hand, another problem is at emacs startup when a bunch of files are opened and then it tries to activate a lot of venv at the same moment.
To avoid this, I'm creating an alias for the pyvenv-workon
to check the emacs start time and also if the venv is already activated.
;; stolen from here
;; http://gnuvola.org/software/personal-elisp/dist/lisp/diversions/emacs-uptime.el
(defun pyvenv-workon-alias ()
"Activates the virtualenv only if we started Emacs more than 30 seconds ago"
(if (> (- (car (cdr (current-time))) (car (cdr emacs-start-time))) 30)
(message "Activate virtualenv")
(message "Do not activate virtualenv")))
Save all the commands executed by Emacs: https://github.com/lewang/command-log-mode
https://github.com/mattharrison/pycoverage.el
Think about the compatibility with linenum
and gitgutter
.
I got tired of erc because of its complexity and I was never able to fix the scrolling... Something very annoying to mantain a real conversation
circe is from the same author than elpy and it seems well mantained.
I don't want to run yapf
over:
*settings*
*migrations*
*scripts*
It's more customizable. For example,
(setq highlight-thing-limit-to-defun t)
to highlight only things inside the current function. The default face
is yellow, but it can be changed easily.
https://github.com/bbatsov/projectile/blob/master/projectile.el#L3086
The idea is to ignore those that has .virtualenvs
and 3rdparty
for example.
Those are faster than grep. That's why I want to use them.
To change to one of them, I want to guarantee what I have now with helm-projectile-grep
:
.projectile
projectile-root-project
References:
Now, if there is no TAGS file in the folder of the file we are editing, emacs ask us all the time about where to generate the TAGS file for the current file at saving.
I should use expand-file-name
instead concat
:)
I tried it but it breaks the undo: https://github.com/Malabarba/aggressive-indent-mode
I think the M-X
could be a good command.
We are using ctags for projectile but we requires exuberant-ctags and we not compile it in the init script.
I'm using the rope
or jedi
backend. Sometimes one is better than the other, but I couldn't decide for one, I'm still testing them.
The problem sometimes is that I get None
suggestions from elpy-rpc-get-completions
and it uses company-dabbrev-code
which sometimes is better than nothing and sometimes is annoying.
(elpy-rpc-get-completions)
Now, I'm calling helm-projectile-find-file
but maybe it could be useful to call helm-etags-select
with the element at point when switching projects.
So, this way, we can jump to a method/class defined in another project in an easy way.
It would be great to have a couple of GIF's for each plugin that it's installed in this repository and point them into the README file. This way, it's too much easy to understand what's inside this repository.
I found this plugin that maybe is useful: https://github.com/gracjan/gifcast.el
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.