gregnewman / dpaste.el Goto Github PK
View Code? Open in Web Editor NEWEmacs mode to post to dpaste.com
Emacs mode to post to dpaste.com
Your copyright note says: "...under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version.".
I recommend change the copyright note with GPLv3 info and add a license copy with the name COPYING in repository.
I use org-mode
to store technical notes. In this notes I insert blocks of code (mostly python) like this:
#+begin_src python
def get_owner_first_name(instance):
return instance.first_name
@admin.register(Car):
class CarAdmin(admin.ModelAdmin):
list_fields = ['id', get_owner_first_name, 'brand__name']
#+end_src
When I select the code and use M-x dpaste-region
it get paste as plain text because the buffer mode isn't python. It would be very useful if dpaste can ask for a text mode before send data.
Currently if I do a selection, then cancel it with C-g, then call dpaste-region-or-buffer, my previous selection is sent.
Every pasted content use the "text" syntax right now, basically because it should use the field syntax instead of language (http://dpaste.com/api/v2/).
PR #8 fix the issue for me.
The title says it all - I think we could safely use (user-full-name) (https://www.gnu.org/software/emacs/manual/html_node/elisp/User-Identification.html) as a good default for the poster name.
I can provide a PR for that - In fact I'd like to do a small bunch of improvements for dpaste.el, like adding more languages, using emacs url-retrieve instead of using curl, etc.
@gregnewman , what do you think ?
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.